Now that we have prepared the execution request, we are ready to call Xpress Executor.
- Find the execute action within RuntimeSoapEndpointsImplService and drag this action on to the flow. Use the executionRequest variable with the executionRequest record as its 'arg0' parameter.
- The execute action will start the optimization on the server using the execution request record we previously constructed. After optimization is complete, construct the execution request record and start the execution on the server.
- Add an assignment immediately after server execution. Because the execute action will return the current execution status, add an assignment immediately after server execution to save execute.return in localExecutionStatus.
- Add an 'if' statement that tests whether localExecutionStatus.executionStatus.status="NOT_COMPLETED". If true, the execution has not completed, at which point we will try to update its status and try again. (In this example the execution will complete quickly, but if you have a larger model then you may want to delay before querying the execution status.)
- Drag the getExecutionStatus action and connect it to the 'true' branch of the condition; the argument of this action should be localExecutionStatus.executionStatus.id (the unique ID of the execution).
- Assign localExecutionStatus to getExecutionStatus.return and retry the condition so that the flow will only proceed down the 'false' branch of this condition when the execution status is no longer 'NOT_COMPLETED'.
© 2001-2019 Fair Isaac Corporation. All rights reserved. This documentation is the
property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not
convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except
solely for internal evaluation purposes to determine whether to purchase a license to the software
described in this documentation, or as otherwise set forth in a written software license agreement
between you and FICO (or a FICO affiliate). Use of this documentation and the software described in
it must conform strictly to the foregoing permitted uses, and no other use is permitted.