Search in sources :

Example 1 with ActivityEvent

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);
    }
}
Also used : ActivityEvent(org.apache.ode.bpel.evt.ActivityEvent)

Example 2 with ActivityEvent

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) {
    // 
    // }
    }
}
Also used : ActivityEvent(org.apache.ode.bpel.evt.ActivityEvent) ActivityInfoDocument(org.apache.ode.bpel.pmapi.ActivityInfoDocument)

Aggregations

ActivityEvent (org.apache.ode.bpel.evt.ActivityEvent)2 ActivityInfoDocument (org.apache.ode.bpel.pmapi.ActivityInfoDocument)1