Defining business objects to enable the bidirectional information flow
You can use the parameter documentation of a business object to define how a bidirectional flow can be set up between the SAP transaction in the SAP HTML user interface and the process instance in IBM® BPM.
About this task
To learn more about how to define descriptors and selectors to enable the bidirectional information flow, review the following information and the example provided later in this topic.
Defining descriptors
About this task
Descriptor | Description | Valid Values | Default Value | Sample |
---|---|---|---|---|
selector | A mandatory CSS selector that specifies the location of the HTML element. | ANY | EMPTY | selector = span[id='helloworld'] |
input | A boolean parameter that specifies whether the transaction parameter is of input or output type. | true or false | true | input=false |
readonly | When readonly is set to true, the located HTML element cannot be manually modified. | true or false | false | readonly=true |
required | When required is set to true, the captured value of this parameter cannot be empty, otherwise the activity cannot be completed. It is applicable only when the input is set to false. | true or false | false | required=true |
extractregex | A regular expression that extracts the value from the selected HTML element. For more information, see Regular Expressions. | ANY | EMPTY | extractregex =\s\d+?(?=has been saved) Extracts an integer string before the string "has been saved" from the captured value. |
format | A regular expression that formats the output value. If the data does not conform to the format, the value is ignored. For more information, see Regular Expressions. | ANY | EMPTY | format=1\d+ The value must be an integer string starting with 1. |
exclude | A JSON array that specifies what value or values must be ignored. If the captured value is within the array, it is ignored. | ANY JSON array | EMPTY JSON array | exclude=[‘exclude1’, ‘exclude2’] The values ‘exclude1’ and ‘exclude2’ are ignored. |
Defining selectors
About this task
HTML content in monitored elements
About this task
Procedure
- Open Mozilla Firefox.
- Click The Inspector perspective opens. .
- Click the Select element with mouse icon in the upper left corner of the Inspector perspective window.
- Select the element that you want to monitor, and then locate the HTML content of the selected element.
Selector patterns
About this task
The selector definition is used to locate the HTML element that you want to monitor. Each HTML element can have many valid selectors. To choose the correct selector, ensure that the CSS selector can be used to locate what you want. For more information, see the CSS Selector reference.
Condition | Pattern | Sample Element | Sample Selector |
---|---|---|---|
If the selected element has a unique ID attribute |
|
|
|
If the parent of the selected element has a unique ID |
|
|
|
If the selected element has a unique attribute value that can be used as an identifier |
|
|
|
If the attribute value varies in different systems, but contains a consistent part. For example, "myuni1" and "myuni2" are possible values of the attribute, but both contain 'myuni'. |
|
|
|
If this parameter corresponds to a table column |
|
|
|
Example
About this task
The following example illustrates how the parameter documentation for the CreateOrder and CreateOrder_Material business objects can be used to prefill data in Transaction VA01 and capture data from it.
Business Object: CreateOrder | |
---|---|
Parameter | Documentation |
DistributionChannel |
|
Division |
|
NetValue |
|
orderId |
|
Business Object: CreateOrder_Material | |
Parameter | Documentation |
quantity |
|
material |
|