As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
processInstanceId = createAndStartProcessInstance(); // performs all steps leading to op1-finished signal catching node waitForEvent("op1-finished", "ACTIVITY_STARTED"); // it will only continue ONLY IF ACTIVITY_STARTED for op1-finished catching node is received, so node should be ready to receive signal // sleep(300); //when i uncomment this it ALWAYS work signalOperation1Finished(); // this always succeeds but whithout sleep the signal isnt always received properly … checkIfProcessFinished(processInstanceId); // fails often without 'sleep' because signal is sent 'too early'(?) and process hangs at waiting for signal
<br> TransactionContext transactionContext = Context.getCommandContext().getTransactionContext();<br> transactionContext.addTransactionListener(TransactionState.COMMITTED, yourImplementation);<br>