|Re: Retrieve Primitive Data instance value from Java code [message #743052 is a reply to message #743050]
||Fri, 21 October 2011 00:25
| Srinivasan Iyer
Registered: October 2011
To evaluate IN / OUT data mappings you need to use the method below on the workflow service.|
getInDataValue(long activityInstanceOID, String context, String id)
The third parameter ID, is the ID of the IN data mapping you have specified for the activity. The data mappings that have been defined on a particular activity can be taken from the application context of the activity that belongs to the activity instance.
Activity activity = activityInstance != null ? activityInstance.getActivity() : null;
ApplicationContext applicationContext = activity.getApplicationContext("jsf");
List inDataMappings = applicationContext.getAllInDataMappings();
If you're using the getInDataValues method by passing null as third parameter, all IN data mappings for the context are retrieved.
getInDataValues(long activityInstanceOID, String context, Set ids)
If you just want to retrieve process data from outside the process, you need to use the getInDataPath or the getInDataPaths method on the Workflow service.
Powered by FUDForum
. Page generated in 0.05953 seconds