Sun Adapter for Batch Tutorial

Adding Business Rules to the Design Elements

Business Rules define the relationship between the input and output Attributes of the elements.

ProcedureTo Add Business Rules

  1. Right-click the link between BatchInbound.receive and BatchLocalFile.read Activities and select Add Business Rule from the context menu.

    Image shows the Add Business Rule option in the link
between the BPEL elements
  2. From the Business Process Designer toolbar, click the Display Business Rules Designer icon.

    The Business Rule Designer opens in the lower half of the Business Process Designer window.

  3. Click the Business Rule icon between the BatchInbound.receive and BatchLocalFile.read Activities.

    The Business Rule Attributes appear in the Business Rule Designer.

  4. To create the BatchInbound.receive⇒BatchLocalFile.read Business Rule, in the Business Rules Designer, click GUIDFileName and drag it to targetFileName.

    A link appears between the two nodes.

    Image shows the BatchInbound.receive to BatchLocalFile.read
business rule
  5. Right-click the link between the BatchLocalFile.read and BatchFTP.put Activities, and select Add Business Rule from the context menu.

  6. Double-click the new Business Rule.

  7. From the Business Rule Designer, under BatchLocalFile.read.Output, map payload in the Output pane to payload under BatchFTP.put.Input in the Input pane.

    Image shows the BatchLocalFile.read to BatchFTP.put business
rule
  8. From the Business Process Designer toolbar, click the Synchronize Graphical Model and Business Process Code icon.

    This synchronizes the graphical interface to the Business Process code.

  9. Click Save All.