Skip to content

Commit

Permalink
修复由于Activiti新版本createUserTaskActivityBehavior方法修改造成的参数传递null会报空指针异常问题
Browse files Browse the repository at this point in the history
  • Loading branch information
finday3 committed Mar 9, 2016
1 parent f8ac396 commit 7c9ac1d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ protected ActivityImpl createActivity(ProcessEngine processEngine, ProcessDefini
taskDefinition.setAssigneeExpression(new FixedValue(assignee));
}

UserTaskActivityBehavior cloneActivityBehavior = ((ProcessEngineConfigurationImpl) processEngine
.getProcessEngineConfiguration()).getActivityBehaviorFactory().createUserTaskActivityBehavior(null,
taskDefinition);
UserTaskActivityBehavior cloneActivityBehavior = new UserTaskActivityBehavior(null, taskDefinition);
clone.setActivityBehavior(cloneActivityBehavior);

return clone;
Expand Down Expand Up @@ -82,4 +80,4 @@ protected String createUniqueActivityId(String processInstanceId, String prototy
return processInstanceId + ":" + prototypeActivityId + ":" + System.currentTimeMillis() + "-"
+ (SEQUNCE_NUMBER++);
}
}
}

0 comments on commit 7c9ac1d

Please sign in to comment.