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