Search in sources :

Example 1 with ScopeInfoType

use of org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.ScopeInfoType 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)

Example 2 with ScopeInfoType

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

the class InstanceManagementServiceSkeleton method getScopeInfo.

private ScopeInfoType getScopeInfo(ScopeDAO scope) throws InstanceManagementException {
    final ScopeInfoType scopeInfo = new ScopeInfoType();
    /*ScopeDAO scope = conn.getScopeEagerly(siid);*/
    if (scope == null) {
        // String errMsg = "Scope "  + siid +" not found.";
        String errMsg = "Scope " + " not found.";
        log.error(errMsg);
        throw new InstanceManagementException(errMsg);
    }
    fillScopeInfo(scopeInfo, scope);
    return scopeInfo;
}
Also used : InstanceManagementException(org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.InstanceManagementException) ScopeInfoType(org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.ScopeInfoType)

Aggregations

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