5.1 Service Command Reusable Parts
JSM Service Command reusable parts provide a method routine for each command in the Service. You can use the to construct your own workflow by invoking a succession on Method Routines associated with a service.
For example, using the ZipService you could invoke the methods JSMOpneandLoad, ZipOpen, ZipAddFile, and JSMCloseandUnload to open a zip file and a file to it.
The new objects are shipped in Samples and Examples in the Visual LANSA IDE:
Workflows
JSM Service Workflow reusable parts provide commonly used workflows as a single call to a method routine. Each workflow is a sequence of calls to JSM Service Command routines.
In some cases, you will need to copy the sample material and modify it to your own requirements. For example, in the case of ExcelService the specific format of the Excel data (number of columns, type of data, etc…) needs to be customized in the RDMLX code.
All sources related to Commands and Workflows examples are in these Visual LANSA Reusable Parts:
An example of how to use a Reusable part is provided in https://learn.lansa.com/courses/Using-LANSA-Integrator's Lesson 2: Create ExcelService using a Reusable Part. This Reusable Part contains many methods routines. Calling these methods routines, you invoke commands of the LANSA Integrator Excel Service.