Open jinyoung opened 7 years ago
박과장님,
프로세스 디자이너를 완성 한 후 할일:
a pseudo code goes like follows:
var variables = serviceLocator.invoke({method: 'POST', path: '/instance/' + instId + '/variables'});
for(var activity in activities){
var status = variables[activity.tracingTag + ":_status:prop"];
if(status == "Completed"){
activityShape.markCompleted();
}else if(status == "Running"){
activityShape.markRunning();
}else...
}
GET method on 'http://localhost:8080/instance/{instanceId}/variables'
will return:
And the process instance flow chart will shows each tasks running states: