InterSystems IRIS Data Platform 2019.2  /  Business Process and Data Transformation Language Reference  /  BPL Elements

Business Process and Data Transformation Language Reference
Previous section           Next section
InterSystems: The power behind what matters   

Define general-purpose properties in the business process execution context.
<context>    <property name="P1" type="%String" />     <property name="P2" type="%String" /> ... </context> 
Element Purpose
<property> Optional. Zero or more <property> elements may appear. Each defines one property of the business process execution context.
The life cycle of a business process requires it to have certain state information saved to disk and restored from disk, whenever the business process suspends or resumes execution. A BPL business process supports the business process life cycle with a group of variables known as the execution context.
The execution context variables include the objects called context, request, response, callrequest, callresponse and process; the integer value synctimedout; the collection syncresponses; and the %Status value status. Each variable has a specific purpose, as described in documentation for the <assign>, <call>, <code>, and <sync> elements.
Most of the execution context variables are automatically defined for the business process. The exception to this rule is the general-purpose container object called context, which a BPL developer must define. Any value that you want to be persistent and available everywhere within the business process should be declared as a property of the context object. You can do this by providing <context> and <property> elements at the beginning of the BPL document, as follows. The resulting BPL code is the same whether you use the Business Process Designer or type the code directly into the BPL document:
<process request="Demo.Loan.Msg.Application" response="Demo.Loan.Msg.Approval">
    <property name="BankName" type="%String"
              initialexpression="BankOfMomAndDad" />
    <property name="IsApproved" type="%Boolean"/>
    <property name="InterestRate" type="%Numeric"/>
    <property name="TheResults"
    <property name="Iterator" type="%String"/>
    <property name="ThisResult" type="Demo.Loan.Msg.Approval"/>
Each <property> element defines the name and data type for a property. For a list of available data type classes, see “Parameters” in the chapter “Data Types” in Defining and Using Classes. You may assign an initial value in the <property> element by providing an initialexpression attribute. Alternatively, you may assign values during business process execution, using the <assign> element.

Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-10-14 06:57:37