Defining a Route With iWay Designer

How to:

This topic describes how to create a process flow with iWay Designer and bind it to the sample channel as a route. These instructions replace Defining a Route.

For details on the full features of iWay Designer, and additional information on using its capabilities, see the iWay Designer User's Guide.

You will complete the following high-level steps to define the route.

  1. Using iWay Designer, create a new project and start a new process flow.
  2. Add a copy service object to the process flow.
  3. Add an acknowledgement service object to the process flow.
  4. Validate the process flow and publish it to the Registry of the iWay Service Manager Administration Console. See the iWay Designer User's Guide for instructions on validating and publishing.
  5. Add a route to the Registry and associate the process flow with that route.

Top of page

x
Procedure: How to Create an iWay Designer Project and Start the Process Flow
  1. From the Windows Start menu select Programs, iWay 6.0.1 SM, tools, and then iWay Designer.
  2. Connect to the repository from which you want to work, for example, iWay.
  3. Right-click the repository node and select New Project from the drop-down list.

    The Designer Project Information dialog box opens, prompting you for a project name and optional description.

  4. In the Name field, type HIPAA_PF_Configuration as the project name.

    In the Description field, type Defining a route for HIPAA inbound processing using iWay Designer to describe the project.

  5. Click Next.

    The Designer Project Bindings dialog box opens.

  6. To create the project in the iWay Registry, select iWay Registry and click Finish. The choice of project association depends on where you intend to publish (deploy) your process flow. If you are developing a process flow for use as part of a channel, you must publish it to the Registry for subsequent deployment.
  7. The HIPAA_PF_Configuration project node appears under the repository in which it was created (in this example, it appears under iWay).
  8. To save the project to the repository, right-click the project node and select Save from the drop-down list.
  9. Expand the HIPAA_PF_Configuration project node to expose the project elements (Processes, Services, Transforms, and so on).
  10. Right-click the Processes folder and select New Process from the drop-down list.

    The iWay Process Configuration dialog box opens.

  11. In the Name field, type HIPAA_Process_Flow as the process flow name.

    In the Description field, type Process flow for HIPAA route for channel for inbound processing.

  12. Click Finish.

    The new HIPAA_Process_Flow node appears under the Processes folder, and the workspace displays a Start object.

You are ready to build the HIPAA_Process_Flow by adding objects to it and specifying their relationships.


Top of page

x
Procedure: How to Add a Copy Service Object

The copy service redirects an output document to a destination.

  1. Drag and drop the Service object from the toolbar to the workspace.

    The Service Name and Description dialog box opens.

  2. In the Name field, type HIPAA_PFlow_Copy, and leave the default value (Service object) in the Description field.
  3. Click Next.

    The Service Type dialog box opens.

  4. Select Class Name and enter com.ibi.agents.XDCopyAgent.
  5. Click Next.

    The Define Service dialog box opens.

    Do not select the check box, since you do not want to use this service in other process flows.

  6. Click Next.

    The Properties dialog box opens.

  7. Click Finish to accept the default values and close the dialog box.

    The new HIPAA_PFlow_Copy Service object appears in the workspace.

    Now you need to connect the Start object to the Copy Service object.

  8. Select the Start object, right-click the HIPAA_PFlow_Copy Service object, and select Build Relation from the drop-down list.

    The Line Configuration dialog box opens.

  9. From the Event drop-down list, select OnCompletion and click OK.

    This option indicates that there are no conditions that affect the path, and that the path between the two objects will always be followed.

    A line appears between the objects to indicate that a relationship has been established.


Top of page

x
Procedure: How to Add an End Object for the Copy Service Object

All processing paths must terminate with an End object.

  1. Drag and drop the End object from the toolbar to the workspace.

    The End Name and Description dialog box opens.

  2. In the Name field, type CopyEnd, and leave the default value (End object) in the Description field.
  3. Click Next.

    The End Name Schema dialog box opens.

  4. Since no schemas are used in this processing path (that is, the process flow will not be exposed as a Web service), from the Schema drop-down list, select None.
  5. Click Next.

    The Properties dialog box opens.

  6. Click Finish to accept the default values and close the dialog box.

    The new CopyEnd object appears in the workspace.

  7. Select the HIPAA_PFlow_Copy Service object, right-click the CopyEnd object, and select Build Relation from the drop-down list.

    The Line Configuration dialog box opens.

  8. From the Event drop-down list, select OnCompletion and click OK.

    This option indicates that there are no conditions that affect the path and that the path between the two objects will always be followed.

    Your process flow will look similar to the following. The HIPAA_PFlow_Copy Service object is a unit of work that redirects the XML output to a defined destination through a custom emit. The CopyEnd object terminates this single process.

    You can reposition the objects as desired.


Top of page

x
Procedure: How to Add an Acknowledgement Service Object

You will add an acknowledgement service to return a functional acknowledgement (997) to the originator of the input document. The acknowledgement indicates that the input document was received and validated for structure. The acknowledgement does not indicate that business processing was performed on the document.

  1. Drag and drop the Service object from the toolbar to the workspace.

    The Service Name and Description dialog box opens.

  2. In the Name field, type HIPAA_PFlow_Ack, and leave the default value (Service object) in the Description field.
  3. Click Next.

    The Service Type dialog box opens.

  4. Select Class Name and enter com.ibi.agents.XDX12AckAgent.
  5. Click Next.

    The Define Service dialog box opens.

    Do not select the check box, since you do not want to use this service in other process flows.

  6. Click Next.

    The Properties dialog box opens.

  7. Click Finish to accept the default values and close the dialog box.

    The new HIPAA_PFlow_Ack Service object appears in the workspace. The process flow will look similar to the following.

  8. Select the Start object, right-click the HIPAA_PFlow_Ack Service object, and select Build Relation from the drop-down list.

    The Line Configuration dialog box opens.

  9. From the Event drop-down list, select OnCompletion and click OK.

    A line appears between the objects to indicate that a relationship has been established.


Top of page

x
Procedure: How to Add an End Object for the Acknowledgement Service Object

All processing paths must terminate with an End object.

  1. Drag and drop the End object from the toolbar to the workspace.

    The End Name and Description dialog box opens.

  2. In the Name field, type AckEnd, and leave the default value (End object) in the Description field.
  3. Click Next.

    The End Name Schema dialog box opens.

  4. Since no schemas are used in this processing path, from the Schema drop-down list, select None.
  5. Click Next.

    The Properties dialog box opens.

  6. Since you do not need to define any properties for this End object, click Finish to accept the default values and close the dialog box.

    The new AckEnd object appears in the workspace.

  7. Select the HIPAA_PFlow_Ack Service object, right-click the AckEnd object, and select Build Relation from the drop-down list.
  8. From the Event drop-down list on the Line Configuration dialog box, select OnCompletion and click OK.

    The process flow is now complete. It will look similar to this.

  9. To save the process flow, right-click the HIPAA_Process_Flow node and select Save from the drop-down list.
  10. Now you need to validate the process flow and publish it to the Registry of the iWay Service Manager Administration Console for use in the route in the channel for inbound processing.

    Validating a process flow ensures that its structure is correct. Publishing a process flow makes it available in the Registry for use in channel configuration.

    For instructions on validating and publishing the process flow, see the iWay Designer User's Guide.

  11. Close iWay Designer.

Your next step is to add a new route to the Registry of the iWay Service Manager Administration Console and associate the process flow with it.


Top of page

x
Procedure: How to Define a Route and Associate the Process Flow With It
  1. From the Registry menu options in the iWay Service Manager Administration Console, click Routes.
  2. On the Route Definitions pane, click Add to add a route.
  3. On the New Route Definition pane, enter a name for the route and an optional description, as shown in the following table. Then click Finish.

    Parameter

    Value

    Name *

    HIPAAtoXML_Route_PFlow

    Description

    Route for HIPAA to XML using process flow.

  4. On the Construct Route pane, click Add.

    You are prompted for the type of component to associate with the route.

  5. Select Process and click Next.
  6. The next pane prompts you to select a process. Select the process flow you created earlier with iWay Designer, HIPAA_Process_Flow, and click Finish.

    The route, with its associated process flow, has been successfully defined.


iWay Software