use of org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.ChildrenWithEvents_type0 in project carbon-business-process by wso2.
the class InstanceManagementServiceSkeleton method fillScopeInfoWithEvents.
private void fillScopeInfoWithEvents(ScopeInfoWithEventsType scopeInfoWithEvents, ScopeDAO scope) {
scopeInfoWithEvents.setSiid(scope.getScopeInstanceId().toString());
scopeInfoWithEvents.setName(scope.getName());
scopeInfoWithEvents.setStatus(odeScopeStatusToManagementAPIStatus(scope.getState()));
ChildrenWithEvents_type0 childScopesWithEvents = new ChildrenWithEvents_type0();
for (ScopeDAO childScope : scope.getChildScopes()) {
ScopeInfoWithEventsType childScopeInfoWithEvents = new ScopeInfoWithEventsType();
fillScopeInfoWithEvents(childScopeInfoWithEvents, childScope);
childScopesWithEvents.addChildWithEventsRef(childScopeInfoWithEvents);
}
scopeInfoWithEvents.setChildrenWithEvents(childScopesWithEvents);
// scopeInfoWithEvents.setVariablesWithEvents(getVariablesWithEvents(scope)); //TODO:
// TODO: Just need to change the schema s.t. avoid CorrelationSets_type1 and remove the comment
// if (!scope.getCorrelationSets().isEmpty()) {
// // scopeInfoWithEvents.setCorrelationSets(getCorrelationPropertires(scope));
// }
scopeInfoWithEvents.setActivitiesWithEvents(getActivitiesWithEvents(scope));
}
Aggregations