Calling soap requests in batch using Mulesoft - soap

I am trying to call a SOAP webservice deployed on Salesforce platform using mulesoft in batch format and I am unable to do that.
I have a scenario where I want to schedule the soap call invocation in batches.
My input is a scheduler and processor needs to aggregate my soap calls in a batch size of some number.
I am unable to do that because mule batch job expects array as an input and in my scenario I don't need any input other than scheduler to just invoke my apex webservice.
Any help is appreciated.

Related

JBPM 7.31 how to expose a REST service to close task

in JBPM is possible to expose a custom REST Service in order to close custom task?
in the example below the process must wait a REST call from an external application in order to close the process.
How I can implement this requirement in JBPM 7.31?
If you remove manager.completeWorkItem(workItem.getId(), results); from RESTWorkItemHandler process execution will wait for completion of REST task. You can manually complete this task through kie-server REST API
[PUT] /server/containers/{containerId}/processes/instances/{processInstanceId}/workitems/{workItemId}/completed
Inplace of making REST task wait I will suggest to add Intermediate timer node or Intermediate Signal node inplace of REST task.
having a signal or receive task would make more sense here instead of creating Url for each process instance to complete. you can provide your implementation of the receive task i.e. a generic service that completes your task. or a signal that you can trigger when your custom rest service is invoked.

How to check in Nifi whether all the flowfile or messages in a process group has cleared or not?

Is there a way to check whether all the messages/flow-files in a processor group has cleared or not using rest api in shell script?
Basically, my use case is that I am stopping a nifi processor in my shell script via curl command. Then I need to wait till all the queues are empty and flow files have passed through before proceeding further.
Yes, you can query the status of individual connections or the process group status via the API. The easiest way to do this is perform the action in your browser and use the Developer Tools to monitor the request and copy/paste this to your invoking tool.

calling webservice from mainframe batch cobol program

Currently, we are connecting getting information from web service through cobol by using "db2 xml" "SOAP HTTP NV".
Currently using sql mentioned below,
exec sql
select
db2xml.soaphttpnv
(:internet protocol address,:webservice namespace,:soap xml schema
structure)
into :varchar-output
from sysibm.sysdummy1
end-exec.
I am pondering the possibilities on hitting the web service without intervention of db2.
I came accross z/os connect ee. I am looking forward to find out the components that would be required in z/os connect to ensure calling SOAP based webservice from cobol(without intervention of db2).
Any suggestions from stalwarts and experts who have achieved this would be much appreciated.
Many thanks in advance!
You could also use IBMs z/OS HTTP/HTTPS Protocol Enabler to invoke services. We do this in batch programs and IMS transactions. Check https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.ieac100/ieac1-client-web-enablement.htm for more information.
z/OS Connect EE only supports RESTful web services using JSON, not SOAP. You can do requests outbound using something called "API requester".
"Configuring z/OS Connect EE to support API requesters" in the IBM Knowledge Center gives details.
We faced similar situation few years ago that we able to invoke the webservice from the CICS (SOAP request) but we don't have option for webservice from batch. So , we triggered the CICS program(EXCI) from batch with DFHS pipeline targeted CICS region where the data passed as parameter to DFHCOMMAREA/ separate table to have data if huge volume then with containers and channels generated xml and invoked the webservice (end points are already defined in the CICS region).

WSO2 BPS - How can I create a human task instance using SOAP?

I need to create a task, as in start an instance of a human task, so it appears in the My Tasks list. Is this even possible without having it linked to a process instance? It's just that I only need the Human Task processor as I'm using another program to handle the process. So in my other program it'll go through the workflow and then when it reaches a user task it creates the task in WSO2 BPS so it can be completed.
I'm using generated stubs in Eclipse for the SOAP requests.
This is supported. Just invoke Task service as normal web service using stubs (wsdl2java) or any other way (like SOAPUI). It will create a Humantask.

How to Schedule Task using Marklogic

These are following areas where Scheduling Task Using Marklogic can be used
1.Loading content. For example, periodically checking for new content from an external data source, such as a web site, web service, etc.
2.Synchronizing content. For example, when MarkLogic is used as a metadata repository, you might want to periodically check for changed data.
3.Delivering batches of content: For example, initiate an RSS feed, hourly or daily.
4.Delivering aggregated alerts, either hourly or daily.
5.Delivering reports, either daily, weekly, or monthly.
6.Polling for the completion of an asynchronous process, such as the creation of a PDF file
My requirement is to schedule a task for bulk loading data from local file system to Marklogic DB using any data loading option available in Marklogic such as
1.MLCP
2.Xquery
3.Rest API
4.Java API
5.WebDAV.
So is there any option to execute this programatically. I prefer MLCP since I need to perform bulk load of data from local file system
Similar to your question at Execute MLCP Content Load Command as a schedule task in Marklogic , I would start with a tool like Apache Camel. There are other options - Mule, Spring Integration, and plenty of commercial/graphical ETL tools - but I've found Camel to be very easy to get started with, and you can utilize the mlcp Camel component at https://github.com/rjrudin/ml-camel-mlcp .