protected void executeParse(BpmnParse bpmnParse, Process element) { bpmnParse.getCurrentProcessDefinition().addExecutionListener(org.activiti.engine.impl.pvm.PvmEvent.EVENTNAME_END, PROCESS_INSTANCE_END_HANDLER); }
@Override protected void executeParse(BpmnParse bpmnParse, Process element) { bpmnParse.getCurrentProcessDefinition().addExecutionListener(org.activiti.engine.impl.pvm.PvmEvent.EVENTNAME_END, PROCESS_INSTANCE_END_HANDLER); }
protected void executeParse(BpmnParse bpmnParse, Process process) { ProcessDefinitionEntity processDefinition = bpmnParse.getCurrentProcessDefinition(); processDefinition.addExecutionListener(ExecutionListener.EVENTNAME_START, processCreateListener); if (multiTenancyEnabled && tenantService.isEnabled()) { String key = tenantService.getName(processDefinition.getKey()); processDefinition.setKey(key); } }
protected void executeParse(BpmnParse bpmnParse, Process process) { ProcessDefinitionEntity processDefinition = bpmnParse.getCurrentProcessDefinition(); processDefinition.addExecutionListener(ExecutionListener.EVENTNAME_START, processCreateListener); if (multiTenancyEnabled && tenantService.isEnabled()) { String key = tenantService.getName(processDefinition.getKey()); processDefinition.setKey(key); } }
TaskDefinition taskDefinition = bpmnParse.getCurrentProcessDefinition().getTaskDefinition(userTask.getId()); if(taskDefinition.getAssigneeExpression() == null && taskDefinition.getCandidateGroupIdExpressions().isEmpty() && taskDefinition.getCandidateUserIdExpressions().isEmpty())
if (bpmnParse.getCurrentFlowElement() instanceof StartEvent) { ProcessDefinitionEntity processDefinition = bpmnParse.getCurrentProcessDefinition(); timerActivity.setProperty("type", "startTimerEvent"); TimerDeclarationImpl timerDeclaration = createTimer(bpmnParse, timerEventDefinition, timerActivity, TimerStartEventJobHandler.TYPE);
if (bpmnParse.getCurrentFlowElement() instanceof StartEvent) { ProcessDefinitionEntity processDefinition = bpmnParse.getCurrentProcessDefinition(); timerActivity.setProperty("type", "startTimerEvent"); TimerDeclarationImpl timerDeclaration = createTimer(bpmnParse, timerEventDefinition, timerActivity, TimerStartEventJobHandler.TYPE);
eventSubscription.setStartEvent(true); eventSubscription.setActivityId(activity.getId()); addEventSubscriptionDeclaration(bpmnParse, eventSubscription, messageDefinition, bpmnParse.getCurrentProcessDefinition());
eventSubscription.setStartEvent(true); eventSubscription.setActivityId(activity.getId()); addEventSubscriptionDeclaration(bpmnParse, eventSubscription, messageDefinition, bpmnParse.getCurrentProcessDefinition());