From 30c6bacb158f5446915a772745f33a28d8da5ea2 Mon Sep 17 00:00:00 2001 From: deepikasatheesh Date: Tue, 8 Sep 2020 05:51:24 -0700 Subject: Implement Subnet Capability query functionality Issue-ID: SO-3222 Signed-off-by: deepikasatheesh Change-Id: I1797aeb1f2b4b461cee627200bda8312a0803524 --- .../main/resources/subprocess/QueryJobStatus.bpmn | 141 +++++++++++++++++++++ 1 file changed, 141 insertions(+) create mode 100644 bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/QueryJobStatus.bpmn (limited to 'bpmn/so-bpmn-infrastructure-flows/src') diff --git a/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/QueryJobStatus.bpmn b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/QueryJobStatus.bpmn new file mode 100644 index 0000000000..b2b6c031f9 --- /dev/null +++ b/bpmn/so-bpmn-infrastructure-flows/src/main/resources/subprocess/QueryJobStatus.bpmn @@ -0,0 +1,141 @@ + + + + + Flow_16nxw2f + + + Flow_16nxw2f + Flow_0qhl0m8 + import org.onap.so.bpmn.infrastructure.scripts.* +def qjs= new QueryJobStatus() +qjs.preProcessRequest(execution) + + + + + + ${NSSMF_AdapterEndpoint} + + + application/json + Basic YnBlbDpwYXNzd29yZDEk + + + ${NSSMF_AdapterRequest} + POST + ${statusCode} + ${response} + + http-connector + + + Flow_0qhl0m8 + Flow_1qqqckj + Flow_18di8yy + + + + + Flow_18di8yy + Flow_0ct1kfw + import org.onap.so.bpmn.infrastructure.scripts.* +def qjs= new QueryJobStatus() +qjs.checkJobStatus(execution) + + + Flow_0ct1kfw + Flow_1x9fug6 + Flow_1qqqckj + + + + + Flow_1x9fug6 + Flow_0qqltc9 + import org.onap.so.bpmn.infrastructure.scripts.* +def qjs= new QueryJobStatus() +qjs.updateJobStatusDetails(execution) + + + #{execution.getVariable("JobStatusCompleted") == "TRUE"} + + + Flow_0qqltc9 + + + + #{execution.getVariable("JobStatusCompleted") == "FALSE"} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit 1.2.3-korg