In this tutorial, you will create a very simple Processing Sequence that uses the JSM Binding Script Configuration you just created with the JSM_BINDSCRIPT activity to receive the JSON request.

This very simple Processing Sequence serves to simply test and validate what you have done so far.  You will run the Processing Sequence and verify the results.

  1. Open LANSA Composer and complete the connection to your LANSA Composer server.  Select Processing Sequences in the Navigator at the left.  Then click the New tool button to create a new Processing Sequence.  The Processing Sequence Editor window will open.
  2. Click the Parameters tab and add one inbound and two outbound Processing Sequence parameters as shown:
  3. Click the Details tab.  Then click the Activities tab in the left pane and locate the JSM_BINDSCRIPT activity and drag and drop it into your Processing Sequence.
  4. Note that an informational message 'Iterator item is empty' appears in the Errors tab.  This is normal and can be ignored.  The JSM_BINDSCRIPT activity is defined as an iterator activity to facilitate its use with more complex solutions.  For this exercise, we have no need to use the iterator capability – we will use it in a later tutorial exercise, however.
  5. In the Configurations tab in the left pane, locate the REQUESTTUTORDJSON JSM Binding Script configuration you created in the previous tutorial.
  6. Drag and drop the configuration into the JSMBINDCONFIG parameter of the JSM_BINDSCRIPT activity.
  7.  Click the Save tool button.  If LANSA Composer warns you about errors and warnings in the Processing Sequence, click Yes to save the Processing Sequence anyway.  Then complete saving your Processing Sequence as follows.  Be sure to select Active in the Status dropdown:
  8. Back in the Processing Sequence Editor window, click the Run toolbar button (or use the equivalent File menu command or the Ctrl+U shortcut).
  9. In the Run Processing Sequence window, click Run immediately.  Specify the path to your JSON request file (you can press F4 or click the '…' button to choose from a list) and then click the Run button to confirm your request.
  10. When the Processing Sequence run has completed, you will see the Processing Sequence Log window, and you should see the BatchNumber and OrderNumber values from your JSON request file shown in the log.
  11. Close the Processing Sequence Log and the Processing Sequence Editor windows.

Now continue with the following tutorial:

JSM025 - Create, Build and Deploy the JSON Binding Solution for the JSON Response

  • No labels