Hi Jayaseelan,

(A Jira is the wrong place to ask questions!!! Please submit your questions either to the forum or to the jbpm-users list).

I've spent several days (maybe even several weeks?) working on the documentation. Please, please take the time to read it! I did my very best to make sure that it was as clear as possible!

The documentation can be found here:
http://docs.jboss.org/jbpm/v6.0.1/userguide/jBPMRemoteAPI.html

If you're using BPMS, the documentation is slightly better and can be found here:
https://access.redhat.com/site/documentation/en-US/Red_Hat_JBoss_BPM_Suite/6.0/html-single/Development_Guide/index.html#Execute_calls


If you're looking to retrieve the list of proccess instances, then you have some different options:

1. Use the Remote Java API client. See the documentation for more details, but in short, you can do something like this:

        // Setup the factory class with the necessarry information to communicate with the REST services
        RemoteRuntimeEngineFactory restSessionFactory
            = new RemoteRestRuntimeFactory(deploymentId, baseUrl, user, password);

        // Create KieSession client instance
        RemoteRuntimeEngine engine = restSessionFactory.newRuntimeEngine();
        KieSession ksession = engine.getKieSession();

        // Each operation on a KieSession, TaskService or AuditLogService (client) instance
        // sends a request for the operation to the server side and waits for the response
        // If something goes wrong on the server side, the client will throw an exception.
        Collection<ProcessInstance> processInstance = ksession.getProcessInstances();

2. The following (history) REST operation is available starting with BPMS 6.0.1:

http://server:port/business-central/rest/history/instances

See the documentation for more info.

3. For jbpm-console, and kie-wb 6.0.1, you can use the following REST operation:

http://server:port/business-central/rest/runtime/{deploymentid}/history/instances

While this call is dependent on the (referenced) deployment id, it will return the list of process instances for all deployments.


Hope that helps,
Good luck,
Marco

Jayaseelan Samuel (JIRA) 16-04-14 08:46:

Marco Rietveld Can you please tell is there any sample example where i can see how to use the below rest api ( /runtime/

{deploymentId}/execute) to get the process definitions.

Currently I can able to get the list of deployment ids using the below call

/rest/deployment

Consider I am having the deployment ids now i am trying to use the below rest api to get the list of process instances available . I am trying to use the JaxbCommandsRequest with get-process-ids command , through a [POST] /runtime/{deploymentId}

/execute .

But I am not sure how to send the get-process-ids command properly in the post request. Any suggestion?? Thanks

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-- 
jBPM/Drools developer
Utrecht, the Netherlands