use of org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.ActivityLifeCycleEventsType in project carbon-business-process by wso2.
the class InstanceManagementServiceSkeleton method getActivityLifeCycleEvents.
private ActivityLifeCycleEventsType getActivityLifeCycleEvents(final long iid) throws InstanceManagementException {
final ActivityLifeCycleEventsType activityLifeCycleEvents = new ActivityLifeCycleEventsType();
activityLifeCycleEvents.setIid(Long.toString(iid));
dbexec(new BpelDatabase.Callable<Object>() {
public Object run(BpelDAOConnection conn) throws InstanceManagementException {
ProcessInstanceDAO instance = conn.getInstanceEagerly(iid, true);
if (instance == null) {
String errMsg = "Instance " + iid + " not found.";
log.error(errMsg);
throw new InstanceManagementException(errMsg);
}
fillActivityLifeCycleEvents(activityLifeCycleEvents, instance);
return null;
}
});
return activityLifeCycleEvents;
}
Aggregations