Overview

The agents (services) that interact with the chaincode are general purpose, as seen by the user of the arg0 type parameters.

The Fabric Wizard (also referred to as the Fabric Agent Generator or Fabric Skinner) in iWay Service Manager (iSM) enables a chaincode designer to skin the agent with more meaningful chaincode-specific prompts and metadata. This simplifies their use and reduces casual errors that can enter a process flow (pflow) due to an incorrect configuration.

This chapter demonstrates how to apply an application skin to the Fabric posting agent appropriate to a funds transfer transaction. The chaincode will be assumed to execute the chaincode transaction Post, with the following parameters:

Actual Agent Parameter

Meaningful Name

Purpose

arg1

To Account

Account number to be credited

arg2

From Account

Source of the funds

arg3

Amount

Value

arg4

Correlation

Application identifier for this transaction. Default will be the iSM Transaction ID (TID).

arg5

Unique ID

Key to an ancillary table holding additional information.

Additional parameters would be required for a true transfer. However for demonstration purposes, only five parameters are being configured.

The agent generator enables the application designer to assign a meaningful label and description to the agent, along with defaults for each configuration parameter. The arg parameters, limited to five in the basic agent as delivered, can be extended to the needed number for the application and each assigned an application-meaningful name.