Currently we are developing a custom component for Adobe LiveCycle, which should offer the following service operation:
Fetch a list of schedulers (= long-lived processes with that loop with a Wait-operation) and check whether there are instances running for them
- Input: none
- Output: A list of (long-lived) process definitions together with a list of (running) process instances in XML
- XML format could look like:
<processes>
<process>
<name>Mortage/Util/Scheduler A</name>
<application>Mortage</application>
<status>Active</status>
<creationDate>2015-03-25T13:00</creationDate>
<processInstances>
<processInstance>
<id>12314</id>
<status>RUNNING</status>
<createdOn>2015-03-25T13:01</createdOn>
<modifiedOn>2015-03-25T13:02</modifiedOn>
<operations>
<operation>
<name>Set Value X</name>
<status>COMPLETE</status>
<createdOn>2015-03-25T13:01</createdOn>
<completedOn>2015-03-25T13:01</completedOn>
</operation>
<operation>
<name>Set Value X</name>
<status>STALLED</status>
<createdOn>2015-03-25T13:02</createdOn>
<completedOn>2015-03-25T13:02</completedOn>
</operation>
</operations>
</processInstance>
<processInstance>
<id>12315</id>
<status>RUNNING</status>
<createdOn>2015-03-25T13:02</createdOn>
<modifiedOn>2015-03-25T13:02</modifiedOn>
<operations>
<operation>
<name>Set Value X</name>
<status>COMPLETE</status>
<createdOn>2015-03-25T13:02</createdOn>
<completedOn>2015-03-25T13:02</completedOn>
</operation>
<operation>
<name>Set Value X</name>
<status>RUNNING</status>
<createdOn>2015-03-25T13:02</createdOn>
<completedOn></completedOn>
</operation>
</operations>
</processInstance>
</processInstances>
</process>
<process>
<name>Mortage/Util/Scheduler B</name>
<application>Mortage</application>
<status>Active</status>
<creationDate>2015-03-25T13:00</creationDate>
<processInstances/>
</process>
</processes>
Though I'm unable to retrieve these kind of processes, since the SDK API does not offer a way to fetch these kind of processes.
I tried the following Quick Start: http://help.adobe.com/en_US/livecycle/10.0/ProgramLC/WS624e3cba99b79e12e69a9941333732bac8-7d27.html
Quick Start (EJB mode): Searching for Process Instances using the Java API
(and yes I went through all the possible options (other Quick Starts, API documentation))