Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Select the Insert Component Step button in the toolbar.

  2. Move the cursor to the design area so it is to the right of the rule-based step. Click the mouse button to drop the component step in the selected location.
    • A new step appears in the Design area. The step's details load in the Properties area on the right-side of the Process Flows record.

    Add Component Step

  3. In the step's Properties area, enter XY Create Literature Order in the Name field. Enter a description on the Description tab, if desired.
  4. Under the Properties tab, select the drown arrow to the right of the Component field to display the available component categories.
  5. Expand the (Entity Operations) > Orders category.

    Select Component
  6. Select the Create Orders Record component from the list.
    • The component's input properties automatically flow down to the step's Properties tab.

  7. Populate the rows on the Properties tab as specified below. Not all rows on the tab are configured, as not all of the input properties are required or necessary for the purposes of this example. Figure C.16 The figure provides an illustration of how some of the inputs from the table below should appear in the Process Flows record.

    Input Property

    Source Type

    Source

    Notes

    SaveRecord

    Static Value

    No

    For this process flow, you do not want to save the Orders record until after you have added the Order Line in Step 3, so set this to No.

    ID

    Static Value

    -1

    The ID will be assigned automatically when the Order is saved. Set this to -1 as a placeholder since this is a required field.

    OrderDate

    Formula

    GetDate()

    Change the Source Type from Static Value to Formula since GetDate() is a SQL Expression. The order will use the current date and time as the Order Date.

    ShipToID

    Context Object

    PersonID

     

    ShipToCountryCodeID

    Static Value
    See Notes -column.

    222
    See Notes -column.

    If the Person does not have an address, then you need to specify the Country Code ID to save the record. This tutorial sets this property to minimize user error. You can use a different Source Type as needed.

    BillToID

    Context Object

    PersonID

     

    BillToCountryCodeID

    Static Value
    See Notes -column.

    222
    See Notes -column.

    If the Person does not have an address, then you need to specify the Country Code ID to save the record. This tutorial sets this property to minimize user error. You can use a different Source Type as needed.

    EmployeeID

    Context Object

    EmployeeID

     

    OrganizationID

    Static Value

    1

    Enter the ID of an Organization's record. For the sake of simplicity, this tutorial sets it to 1 but you could use another source type as necessary.

    PayTypeID

    Static Value

    1

    Set the pay type to Purchase Order since there will be no charge for this literature order.

    PONumber

    Static Value

    N/A

     

    OrderLevelID

    Static Value

    1

    Enter the ID of the application OrderLevel record. For the sake of simplicity, this tutorial sets it to 1 but you could use another source type as necessary.

     

    Create Order Record Inputs

  8. Save the record.
  9. Click the Output Map tab.

  10. Configure the following settings for the GEObject output property so the Orders GE object can be passed to the Create OrderLines Record component in the next step of the Process Flow:
    • Destination Type: Context Object
    • Destination: GEObject

      Step's Output Map
  11. Save the record.

...

  1. Click the Insert Result Code Link icon in the toolbar.
  2. Place the cursor over one of the handles of step 1's box until it becomes a target symbol. Click the mouse button.

    Adding a Link Between Steps
  3. Drag the cursor over a handle of step 2's box. Click the mouse button.
    • The Create New Result Code dialog appears.

  4. Enter Unlinked in the Result Code field. Leave Is Success checkedselected.

    Specify Result Code
  5. Click OK to close the dialog.
    • A link labeled Unlinked is added between steps 1 and 2 in the diagram.

  6. Select Step 1 in the diagram to load its properties.

  7. Click the Action Map tab.
    • The Unlinked action already appears on this tab.

  8. Click the New Map button to open the Create New Result Code dialog.

  9. Enter Linked in the Result Code field and leave Is Success checkedselected. Click OK to save and close the dialog.
    • A Linked action appears in the Action Map.

  10. For the Linked action, select End Process as the Action and enter AFFILIATED in the Process Flow Result Code field.

    Specify Action Map Properties
  11. Save the record.

...

Note

At this point, you can use the Process Flow Debugger tool to test your process flow. See Using the Process Flow Debugger for details.