public TransactionBuilder transactionDone() { BpmnModelElementInstance lastTransaction = element.getScope(); if (lastTransaction != null && lastTransaction instanceof Transaction) { return new TransactionBuilder(modelInstance, (Transaction) lastTransaction); } else { throw new BpmnModelException("Unable to find a parent transaction."); } }
public BpmnModelElementInstance getScope() { BpmnModelElementInstance parentElement = (BpmnModelElementInstance) getParentElement(); if (parentElement != null) { if (parentElement.isScope()) { return parentElement; } else { return parentElement.getScope(); } } else { return null; } } }
/** * Finishes the building of an embedded sub-process. * * @return the parent sub-process builder * @throws BpmnModelException if no parent sub-process can be found */ public SubProcessBuilder subProcessDone() { BpmnModelElementInstance lastSubProcess = element.getScope(); if (lastSubProcess != null && lastSubProcess instanceof SubProcess) { return ((SubProcess) lastSubProcess).builder(); } else { throw new BpmnModelException("Unable to find a parent subProcess."); } }
public TransactionBuilder transactionDone() { BpmnModelElementInstance lastTransaction = element.getScope(); if (lastTransaction != null && lastTransaction instanceof Transaction) { return new TransactionBuilder(modelInstance, (Transaction) lastTransaction); } else { throw new BpmnModelException("Unable to find a parent transaction."); } }
public TransactionBuilder transactionDone() { BpmnModelElementInstance lastTransaction = element.getScope(); if (lastTransaction != null && lastTransaction instanceof Transaction) { return new TransactionBuilder(modelInstance, (Transaction) lastTransaction); } else { throw new BpmnModelException("Unable to find a parent transaction."); } }
/** * Finishes the building of an embedded sub-process. * * @return the parent sub-process builder * @throws BpmnModelException if no parent sub-process can be found */ public SubProcessBuilder subProcessDone() { BpmnModelElementInstance lastSubProcess = element.getScope(); if (lastSubProcess != null && lastSubProcess instanceof SubProcess) { return ((SubProcess) lastSubProcess).builder(); } else { throw new BpmnModelException("Unable to find a parent subProcess."); } }
public BpmnModelElementInstance getScope() { BpmnModelElementInstance parentElement = (BpmnModelElementInstance) getParentElement(); if (parentElement != null) { if (parentElement.isScope()) { return parentElement; } else { return parentElement.getScope(); } } else { return null; } } }
public BpmnModelElementInstance getScope() { BpmnModelElementInstance parentElement = (BpmnModelElementInstance) getParentElement(); if (parentElement != null) { if (parentElement.isScope()) { return parentElement; } else { return parentElement.getScope(); } } else { return null; } } }
/** * Finishes the building of an embedded sub-process. * * @return the parent sub-process builder * @throws BpmnModelException if no parent sub-process can be found */ public SubProcessBuilder subProcessDone() { BpmnModelElementInstance lastSubProcess = element.getScope(); if (lastSubProcess != null && lastSubProcess instanceof SubProcess) { return ((SubProcess) lastSubProcess).builder(); } else { throw new BpmnModelException("Unable to find a parent subProcess."); } }