|
|
@@ -200,7 +200,11 @@ public class BpmProcInstServiceImpl implements BpmProcInstService {
|
|
|
}
|
|
|
// 处理任务跳过.
|
|
|
StopWatchUtil.stopAndStartNewLocal(stepId, step, "handlerSkipTask");
|
|
|
- handlerSkipTask(finalInstance, curUser, step, stepId);
|
|
|
+ //if the instance is triggered by job,we should not skip the first node.
|
|
|
+ String ignoreSkipFirstNode = String.valueOf(procInstCmd.getVariable("ignoreSkipFirstNode"));
|
|
|
+ if(!StringPool.TRUE.equals(ignoreSkipFirstNode)) {
|
|
|
+ handlerSkipTask(finalInstance, curUser, step, stepId);
|
|
|
+ }
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
throw e;
|