Page History
...
Display feature availability | ||
---|---|---|
|
Lock Instruction
Use with StopOnFailure Option
This example introduces a situation when users find a nested JS7 - Lock Instruction.
Download (upload .json):
The example implements nested use of Lock Instructions with orders remaining at their workflow position in case of failure.
- the Options Instruction is used to set the StopOnFailure attribute.
- the first Lock Instruction expects the
pdErrorLockBig
Lock being present. - the second Lock Instruction occurs inside the first instruction and expects the
pdErrorLockSmall
Lock being present.
In the Configuration view the workflow looks like this:
At run-time in the Workflows view the workflow looks like this for a failed order:
- the failed order remains with the failed job.
- the
pdErrorLockBig
andpdErrorLockSmall
Locks remain blocked by respective Lock Instructions and are not freed before the order leaves the instruction block.
Use without StopOnFailure Option
This example introduces a situation when users find a nested JS7 - Lock Instruction.
Download (upload .json):
The example implements nested use of Lock Instructions with orders moving to the outmost Lock Instruction in case of failure.
- no Options Instruction is used.
- the first Lock Instruction expects the
pdErrorLockBig
Lock being present. - the second Lock Instruction occurs inside the first instruction and expects the
pdErrorLockSmall
Lock being present.
In the Configuration view the workflow looks like this:
At run-time in the Workflows view the workflow looks like this for a failed order:
- the failed order moves to the outmost Lock Instruction and remains in a failed state.
- the
pdErrorLockBig
andpdErrorLockSmall
Locks are freed and are availble to other byLock Instructions.
ConsumeNotices Instruction
...
This example introduces a situation when users find a nested JS7 - ConsumeNotices Instruction.
Download (upload .json):
- pdErrorNoticeFailWithInstructionpdErrorNotice01.workflownoticeboard.json
- pdErrorNotice01pdErrorNotice02.noticeboard.json
- pdErrorNotice02pdErrorNoticeFailWithInstruction.noticeboardworkflow.json
The example implements nested use of ConsumeNotices Instructions with orders remaining at their workflow position in case of failure.
- the Options Instruction is used to set the StopOnFailure attribute.
- the first ConsumeNotices Instruction expects the
Notice01
Notice being present. - the second ConsumeNotices Instruction occurs inside the first instruction and expects the
Notice02
Notice being present.
...
- the failed order remains with the failed job.
- the
Notice01
andNotice02
Notices are consumed by respective ConsumeNotices Instructions and are not removed before the order leaves the instruction block.
Use without StopOnFailure Option
This example introduces a situation when users find a nested JS7 - ConsumeNotices Instruction.
Download (upload .json):
- pdErrorNoticeFailWithNoticepdErrorNotice01.workflownoticeboard.json
- pdErrorNotice01pdErrorNotice02.noticeboard.json
- pdErrorNotice02pdErrorNoticeFailWithNotice.noticeboardworkflow.json
The example implements nested use of ConsumeNotices Instructions with orders moving to the outmost ConsumeNotices Instruction in case of failure.
- no Options Instruction is used.
- the first ConsumeNotices Instruction expects the
Notice01
Notice being present. - the second ConsumeNotices Instruction occurs inside the first instruction and expects the
Notice02
Notice being present.
...