use of org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.FailureInfoType in project carbon-business-process by wso2.
the class InstanceManagementServiceSkeleton method fillActivityInfo.
private ActivityInfoType fillActivityInfo(ActivityInfoType activity, TActivityInfo actInfo) {
activity.setAiid(actInfo.getAiid());
activity.setDateCompleted(actInfo.getDtCompleted());
activity.setDateEnabled(actInfo.getDtEnabled());
activity.setDateStarted(actInfo.getDtStarted());
activity.setName(actInfo.getName());
activity.setType(actInfo.getType());
TFailureInfo failure = actInfo.getFailure();
if (failure != null) {
FailureInfoType failureInfo = new FailureInfoType();
failureInfo.setActions(failure.getActions());
failureInfo.setDateFailure(failure.getDtFailure());
failureInfo.setReason(failure.getReason());
failureInfo.setRetries(failure.getRetries());
activity.setFailure(failureInfo);
}
activity.setStatus(activityStatusMap.get(actInfo.getStatus()));
return activity;
}
Aggregations