...
- The following test cases are available with the Resource Lock Consumer sample job chain.
- Run test case 1: Check resource lock on first job step
- The job chain
test_case_1
makes use of the/resource_lock_provider/request_resource_lock
job as the first job node. - No parameterization is used, therefore the scope of the resource lock is the current job chain that is forced to process order sequentially.
- Adding multiple orders to this job chain causes all orders to be processed only after predecessor orders completed the job chain.
- Start the orders
test_case_1-1, ..., test_case_1-3
by use of JOC. - Add any number of new orders by use of JOC with the Add Order context menu.
- Start the orders
- The job chain
- Run test case 1A: Check resource lock on first job step with common resource lock for test case 1
- The job chain
test_case_1A
is a copy oftest_case_1
but makes use of the same resource lock astest_case_1
. - The orders
test_case_1A-1, ..., test_case_1A-3
use the parameterresource_lock
with the value/resource_lock_consumer/test_case_1
therefore forcing order orders for both job chains to be processed sequentially:- Start the orders
test_case_1-1, ..., test_case_1-3
by use of JOC that will run for job chaintest_case_1
. - Start the orders
test_case_1A-1, ..., test_case_1A-3
by use of JOC that will run in job chaintest_case_1A
but are synchronized with orders of job chaintest_case_1
.
- Start the orders
- The job chain
- Run test case 2: Check resource lock on each job step
- This test case is designed to prevent parallel execution of orders in a job chain independent from the job node that orders are started for.
- The job chain test_case_2 makes use of the jobs
job_step_1_resource_lock
andjob_step_2_resource_lock
. Both jobs are assigned therequest_resource_lock
monitor. The above-mentioned initial job noderequest_resource_lock
is not used as the individual jobs would anyway make use of the same resource lock monitor. - Adding multiple orders to this job chain causes orders to behave sequentially as for test case 1:
- Start the orders
test_case_2-1, ..., test_case_2-3
by use of JOC. - Add any number of new orders by use of JOC with the Add Order context menu.
- Start the orders
...