use of org.apache.ode.bpel.evt.ActivityEvent in project carbon-business-process by wso2.
the class ActivityLifeCycleEventsDocumentBuilder method onEvent.
public void onEvent(BpelEvent bpelEvent) {
if (bpelEvent instanceof ActivityEvent) {
final ActivityEvent event = (ActivityEvent) bpelEvent;
fillEventInfo(event);
}
}
use of org.apache.ode.bpel.evt.ActivityEvent in project carbon-business-process by wso2.
the class ActivityStateAndEventDocumentBuilder method onEvent.
// private boolean removeCompleted = false;
/**
* Update activitiesWithEventsOrdered and activitiesWithEvents based on the event
*
* @param be BPEL Event
*/
public void onEvent(BpelEvent be) {
super.onEvent(be);
List<ActivityInfoDocument> infoDocList = super.getActivities();
// Adding the event information
if (be instanceof ActivityEvent) {
final ActivityEvent event = (ActivityEvent) be;
// Fill the activity info to activitiesWithEvents &
fillActivityInfo(event, infoDocList);
// activitiesWithEventsOrdered
ActivityInfoWithEventsDocument actinf = lookup(event);
assert actinf != null;
// TODO: Denis please fill the gaps
// if (event instanceof ActivityEnabledEvent) {
//
// }
// if (event instanceof ActivityExecStartEvent) {
//
// } else if (event instanceof ActivityExecEndEvent) {
//
// }
}
}
Aggregations