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;
}
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;
}
Aggregations