Esempio n. 1
0
  public Void execute(Context cntxt) {
    TaskContext context = (TaskContext) cntxt;
    doCallbackUserOperation(userId, context);
    groupIds = doUserGroupCallbackOperation(userId, null, context);
    context.set("local:groups", groupIds);

    Task task = context.getTaskQueryService().getTaskInstanceById(taskId);
    context
        .getTaskRuleService()
        .executeRules(task, userId, data, TaskRuleService.COMPLETE_TASK_SCOPE);

    TaskInstanceService instanceService = context.getTaskInstanceService();
    instanceService.complete(taskId, userId, data);
    return null;
  }
 public void setPriority(long taskId, int priority) {
   taskInstanceService.setPriority(taskId, priority);
 }
 public void activate(long taskId, String userId) {
   taskInstanceService.activate(taskId, userId);
 }
 public SubTasksStrategy getSubTaskStrategy(long taskId) {
   return taskInstanceService.getSubTaskStrategy(taskId);
 }
 public List<I18NText> getDescriptions(long taskId) {
   return taskInstanceService.getDescriptions(taskId);
 }
 public int getPriority(long taskId) {
   return taskInstanceService.getPriority(taskId);
 }
 public void setSkipable(long taskId, boolean skipable) {
   taskInstanceService.setSkipable(taskId, skipable);
 }
 public void setExpirationDate(long taskId, Date date) {
   taskInstanceService.setExpirationDate(taskId, date);
 }
 public void deleteOutput(long taskId, String userId) {
   taskInstanceService.deleteOutput(taskId, userId);
 }
Esempio n. 10
0
 public void delegate(long taskId, String userId, String targetUserId) {
   taskInstanceService.delegate(taskId, userId, targetUserId);
 }
Esempio n. 11
0
 public void complete(long taskId, String userId, Map<String, Object> data) {
   taskInstanceService.complete(taskId, userId, data);
 }
Esempio n. 12
0
 public void claimNextAvailable(String userId, List<String> groupIds, String language) {
   taskInstanceService.claimNextAvailable(userId, groupIds, language);
 }
Esempio n. 13
0
 public void claimNextAvailable(String userId, String language) {
   taskInstanceService.claimNextAvailable(userId, language);
 }
Esempio n. 14
0
 public void claim(long taskId, String userId, List<String> groupIds) {
   taskInstanceService.claim(taskId, userId, groupIds);
 }
Esempio n. 15
0
 public void claim(long taskId, String userId) {
   taskInstanceService.claim(taskId, userId);
 }
Esempio n. 16
0
 public void stop(long taskId, String userId) {
   taskInstanceService.stop(taskId, userId);
 }
Esempio n. 17
0
 public void suspend(long taskId, String userId) {
   taskInstanceService.suspend(taskId, userId);
 }
Esempio n. 18
0
 public void exit(long taskId, String userId) {
   taskInstanceService.exit(taskId, userId);
 }
Esempio n. 19
0
 public void setDescriptions(long taskId, List<I18NText> descriptions) {
   taskInstanceService.setDescriptions(taskId, descriptions);
 }
Esempio n. 20
0
 public void fail(long taskId, String userId, Map<String, Object> faultData) {
   taskInstanceService.fail(taskId, userId, faultData);
 }
Esempio n. 21
0
 public void setSubTaskStrategy(long taskId, SubTasksStrategy strategy) {
   taskInstanceService.setSubTaskStrategy(taskId, strategy);
 }
Esempio n. 22
0
 public void forward(long taskId, String userId, String targetEntityId) {
   taskInstanceService.forward(taskId, userId, targetEntityId);
 }
Esempio n. 23
0
 public Date getExpirationDate(long taskId) {
   return taskInstanceService.getExpirationDate(taskId);
 }
Esempio n. 24
0
 public void resume(long taskId, String userId) {
   taskInstanceService.resume(taskId, userId);
 }
Esempio n. 25
0
 public boolean isSkipable(long taskId) {
   return taskInstanceService.isSkipable(taskId);
 }
Esempio n. 26
0
 public void setFault(long taskId, String userId, FaultData fault) {
   taskInstanceService.setFault(taskId, userId, fault);
 }
Esempio n. 27
0
 public void setTaskNames(long taskId, List<I18NText> taskName) {
   taskInstanceService.setTaskNames(taskId, taskName);
 }
Esempio n. 28
0
 public void setOutput(long taskId, String userId, Object outputContentData) {
   taskInstanceService.setOutput(taskId, userId, outputContentData);
 }