@Override public void setMessageService(MessageService msgService) { MuleMessageService serviceProxy = processEngine.get(MuleMessageService.class); serviceProxy.setMessageService(msgService); }
public void assignTask(long taskId, String idRef, String performingUser) { TaskService taskService = this.processEngine.get(TaskService.class); taskService.assignTask(Long.toString(taskId), idRef); }
public void setMessageService(MessageService msgService) { MuleMessageService serviceProxy = processEngine.get(MuleMessageService.class); serviceProxy.setMessageService(msgService); }
public void releaseTask(long taskId, String performingUser) { TaskService taskService = this.processEngine.get(TaskService.class); taskService.assignTask(Long.toString(taskId), null); }
protected void initializeProcessEngine() { try { InitialContext ctx = new InitialContext(); this.processEngine = (ProcessEngine) ctx.lookup("java:/ProcessEngine"); } catch (Exception e) { // Fall back to default mechanism this.processEngine = Configuration.getProcessEngine(); } this.webServiceHost = (String) processEngine.get("jbpm.console.server.host"); this.webServicePort = (String) processEngine.get("jbpm.console.server.port"); if ( (webServiceHost==null) || (webServicePort==null) ) { throw new JbpmException("make sure that strings 'jbpm.console.server.host' and 'jbpm.console.server.port' are properly configured in the process-engine-context of jbpm.cfg.xml"); } }
protected void initializeProcessEngine() { try { InitialContext ctx = new InitialContext(); this.processEngine = (ProcessEngine) ctx.lookup("java:/ProcessEngine"); } catch (Exception e) { // Fall back to default mechanism this.processEngine = Configuration.getProcessEngine(); } this.webServiceHost = (String) processEngine.get("jbpm.console.server.host"); this.webServicePort = (String) processEngine.get("jbpm.console.server.port"); if ( (webServiceHost==null) || (webServicePort==null) ) { throw new JbpmException("make sure that strings 'jbpm.console.server.host' and 'jbpm.console.server.port' are properly configured in the process-engine-context of jbpm.cfg.xml"); } }
public void completeTask(long taskId, String outcome, Map data, String performingUser) { TaskService taskService = this.processEngine.get(TaskService.class); if (data != null) taskService.setVariables(Long.toString(taskId), data); taskService.completeTask(Long.toString(taskId), outcome); }
public List<TaskRef> getUnassignedTasks(String idRef, String participationType) { TaskService taskService = this.processEngine.get(TaskService.class); List<TaskRef> results = new ArrayList<TaskRef>(); if (null == participationType || participationType.equals(Participation.CANDIDATE)) { List<Task> groupTasks = taskService.findGroupTasks(idRef); adoptTasks(groupTasks, results); } else { throw new IllegalArgumentException("Unknown participation type: " + participationType); } return results; }
public void completeTask(long taskId, Map data, String performingUser) { TaskService taskService = this.processEngine.get(TaskService.class); if (data != null) taskService.setVariables(Long.toString(taskId), data); taskService.completeTask(Long.toString(taskId)); }
public List<TaskRef> getAssignedTasks(String idRef) { TaskService taskService = this.processEngine.get(TaskService.class); List<TaskRef> results = new ArrayList<TaskRef>(); List<Task> assignedTasks = taskService.findPersonalTasks(idRef); adoptTasks(assignedTasks, results); return results; }
public TaskRef getTaskById(long taskId) { TaskService taskService = this.processEngine.get(TaskService.class); Task t0 = taskService.getTask(Long.toString(taskId)); return ModelAdaptor.adoptTask(t0); }