Search in sources :

Example 1 with Children_type0

use of org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.Children_type0 in project carbon-business-process by wso2.

the class InstanceManagementServiceSkeleton method fillScopeInfo.

private void fillScopeInfo(ScopeInfoType scopeInfo, ScopeDAO scope) {
    scopeInfo.setSiid(scope.getScopeInstanceId().toString());
    scopeInfo.setName(scope.getName());
    scopeInfo.setStatus(odeScopeStatusToManagementAPIStatus(scope.getState()));
    Children_type0 childScopes = new Children_type0();
    if (scope.isChildrenExist()) {
    }
    for (ScopeDAO childScope : scope.getChildScopes()) {
        ScopeInfoType childScopeInfo = new ScopeInfoType();
        fillScopeInfo(childScopeInfo, childScope);
        childScopes.addChildRef(childScopeInfo);
    }
    scopeInfo.setChildren(childScopes);
    scopeInfo.setVariables(getVariables(scope));
    if (!scope.getCorrelationDTOs().isEmpty()) {
        scopeInfo.setCorrelationSets(getCorrelationPropertires(scope));
    }
    scopeInfo.setActivities(getActivities(scope));
}
Also used : Children_type0(org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.Children_type0) ScopeInfoType(org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.ScopeInfoType) ScopeDAO(org.apache.ode.bpel.dao.ScopeDAO)

Aggregations

ScopeDAO (org.apache.ode.bpel.dao.ScopeDAO)1 Children_type0 (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.Children_type0)1 ScopeInfoType (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.ScopeInfoType)1