Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Stardust/Knowledge Base/Java API"

Line 1: Line 1:
== Introduction  ==
+
== JAVA API Cookbook ==
 
+
<pre>NOTE to authors: Please make sure to specify the version on which the example was tested.  
NOTE to authors: Please make sure to specify the version on which the example was tested.  
+
All version numbers &lt; 7.0 refer to the Infinity Process Platform (IPP)
 
+
</pre>  
All version numbers &lt; 7.0 refer to the Infinity Process Platform (IPP)]<br>  
+
 
+
 
<br>  
 
<br>  
  
== Activity Instance Lifycycle ==
+
*[[STP/Stardust/KnowledgeBase/API/JavaAPICookbook/AILifeCycle|Activity Instance Lifycycle]]
 +
*[[STP/Stardust/KnowledgeBase/API/JavaAPICookbook/QueryingWorklists|Querying Worklist]]
 +
*[[STP/Stardust/KnowledgeBase/API/JavaAPICookbook/EventHandling|Event Handling]]<br>
  
== Querying Worklists  ==
 
 
== Event Handling  ==
 
 
==== Runtime unbinding of activity events and setting data path of process instance)<br>  ====
 
 
(Versions: 5.3.x)<br>
 
 
There are certain instances when you want to unbind an event (e.g timer) associated with an activity instance during runtime execution of your process instance, and also set the value of a data path defined for the process. The following code snippet shows how this can be achieved:<br>
 
<pre>for (int i = 0; i &lt; lActivityInstances.size(); i++) {
 
 
  Activity ai = (Activity) lActivityInstances.get(i);
 
 
  workflowService.unbindActivityEventHandler(lActivityInstances .get(i).getOID(), "timer");
 
 
  HashMap outmap = new HashMap();
 
 
  workflowService.activateAndComplete(lActivityInstances.get(i).getOID(), null, outmap);
 
 
  workflowService.setOutDataPath(lProcessInstances.get(0).getOID(),"date", outmap);
 
 
}
 
</pre>
 
 
<br>
 
<br>

Revision as of 00:20, 3 November 2011

JAVA API Cookbook

NOTE to authors: Please make sure to specify the version on which the example was tested. 
All version numbers < 7.0 refer to the Infinity Process Platform (IPP)



Back to the top