Search in sources :

Example 6 with EnableEventListType

use of org.wso2.carbon.bpel.stub.mgt.types.EnableEventListType in project carbon-business-process by wso2.

the class BPELPackageRepositoryUtils method getScopeEventFromString.

public static ScopeEventType getScopeEventFromString(String scopeEventInString) {
    ScopeEventType scopeEvent = new ScopeEventType();
    EnableEventListType enableEventListType = new EnableEventListType();
    String[] scopeEventEntries = getStringsFromArray(scopeEventInString);
    for (int i = 0; i < scopeEventEntries.length - 1; i++) {
        enableEventListType.addEnableEvent(scopeEventEntries[i + 1]);
    }
    scopeEvent.setScope(scopeEventEntries[0]);
    scopeEvent.setEnabledEventList(enableEventListType);
    return scopeEvent;
}
Also used : EnableEventListType(org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.EnableEventListType) ScopeEventType(org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.ScopeEventType)

Example 7 with EnableEventListType

use of org.wso2.carbon.bpel.stub.mgt.types.EnableEventListType in project carbon-business-process by wso2.

the class BPELPackageRepositoryUtils method getEnabledEventsListFromString.

public static EnableEventListType getEnabledEventsListFromString(String processEventsInString) {
    EnableEventListType enableEventListType = new EnableEventListType();
    String[] enabledEvents = getStringsFromArray(processEventsInString);
    for (String event : enabledEvents) {
        enableEventListType.addEnableEvent(event);
    }
    return enableEventListType;
}
Also used : EnableEventListType(org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.EnableEventListType)

Aggregations

EnableEventListType (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.EnableEventListType)5 ScopeEventType (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.ScopeEventType)4 ScopeEventListType (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.ScopeEventListType)3 BpelEvent (org.apache.ode.bpel.evt.BpelEvent)2 CleanUpListType (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.CleanUpListType)2 CleanUpType (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.CleanUpType)2 Generate_type1 (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.Generate_type1)2 ProcessEventsListType (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.ProcessEventsListType)2 EnableEventListType (org.wso2.carbon.bpel.stub.mgt.types.EnableEventListType)2 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 Map (java.util.Map)1 Set (java.util.Set)1 QName (javax.xml.namespace.QName)1 TInvoke (org.apache.ode.bpel.dd.TInvoke)1 TProvide (org.apache.ode.bpel.dd.TProvide)1 ProcessConf (org.apache.ode.bpel.iapi.ProcessConf)1 ProcessState (org.apache.ode.bpel.iapi.ProcessState)1 Node (org.w3c.dom.Node)1 ProcessConfigurationImpl (org.wso2.carbon.bpel.core.ode.integration.store.ProcessConfigurationImpl)1