ret.append(processInstance.getStatus()); ret.append(" waitCount: "); ret.append(processInstance.getWaitCount()); ret.append("\n"); for (Audit audit: processInstance.getAudits()) {
public boolean execute(ProcessInstance processInstance) { log.debug("{}",this); for (ProcessDefinition subProcess:m_subProcess) { ProcessInstance subprocessInstance = new ProcessInstance(); subprocessInstance.setBundleName(processInstance.getBundleName()); subProcess.startProcess(subprocessInstance); processInstance.getChildProcesses().add(subprocessInstance); subprocessInstance.setObjectInstance(processInstance.getObjectInstance()); subprocessInstance.setParentProcess(processInstance); log.debug("subprocess launched: {}",subprocessInstance.getProcessDefinitionName()); } ProcessInstanceUtils.clearQueue(processInstance); processInstance.setWaitCount(m_subProcess.size()); log.debug("{} subprocesses launched for: {} {}",processInstance.getWaitCount(),processInstance.getProcessDefinitionName(),processInstance.getId()); return false; }
public boolean execute(ProcessInstance processInstance) { log.debug("{}",this); WorkflowManager workflowManager = getOwnerProcess().getWorkflowManager(); List<?> list = (List<?>)workflowManager.getField(processInstance, getFd()); if (!list.isEmpty()) { for (Object o:list) { ProcessInstance subProcess = new ProcessInstance(); subProcess.setBundleName(processInstance.getBundleName()); getSubProcess().startProcess(subProcess); processInstance.getChildProcesses().add(subProcess); subProcess.setObjectInstance(workflowManager.createContextDescriptor(o)); subProcess.setParentProcess(processInstance); log.debug("subprocess launched: {}",subProcess.getProcessDefinitionName()); } ProcessInstanceUtils.clearQueue(processInstance); processInstance.setWaitCount(list.size()); log.debug("{} subprocesses launched for: {} {}",processInstance.getWaitCount(),processInstance.getProcessDefinitionName(),processInstance.getId()); } return false; } }
break; case SUBPROCESS_END: if (processInstance.getWaitCount() == 0) { break; processInstance.setWaitCount(processInstance.getWaitCount()-1); if (processInstance.getWaitCount() == 0) { if (processInstance.isCyclic()) {
if (parent.getWaitCount() > 0) {
theWaitCount = this.getWaitCount(); strategy.appendField(locator, this, "waitCount", buffer, theWaitCount);
lhsWaitCount = this.getWaitCount(); Integer rhsWaitCount; rhsWaitCount = that.getWaitCount(); if (!strategy.equals(LocatorUtils.property(thisLocator, "waitCount", lhsWaitCount), LocatorUtils.property(thatLocator, "waitCount", rhsWaitCount), lhsWaitCount, rhsWaitCount)) { return false;
theWaitCount = this.getWaitCount(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "waitCount", theWaitCount), currentHashCode, theWaitCount);