Search in sources :

Example 1 with FailureInfoType

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;
}
Also used : FailureInfoType(org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.FailureInfoType) TFailureInfo(org.apache.ode.bpel.pmapi.TFailureInfo)

Aggregations

TFailureInfo (org.apache.ode.bpel.pmapi.TFailureInfo)1 FailureInfoType (org.wso2.carbon.bpel.skeleton.ode.integration.mgt.services.types.FailureInfoType)1