read only data fields

 

Notes (Note)

 

XXX Public Links - read only data fields


Public Description - read only data fields

ReadOnly DataField and FormalParameter

|Please note: this is a preliminary proposal for XPDL 2.1 which has not yet been adopted by the coalition. Please use this page for discussion of that proposed extension. This proposal may change substantially before adoption, or may possibly never be officially adopted in this form.

Tags: ReadOnly is a new attribute of the datafield and Formal Parameter object \\ <xsd:attribute name="ReadOnly" use="optional" default="FALSE">

<xsd:element name="DataField">
 <xsd:complexType>
  <xsd:sequence>
   <xsd:element ref="xpdl:DataType"/>
   <xsd:element name="InitialValue" type="xpdl:ExpressionType" minOccurs="0"/>
   <xsd:element ref="xpdl:Length" minOccurs="0"/>
   <xsd:element ref="xpdl:Description" minOccurs="0"/>
   <xsd:element ref="xpdl:ExtendedAttributes" minOccurs="0"/>
   <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
  </xsd:sequence>
  <xsd:attribute name="Id" type="xsd:NMTOKEN" use="required"/>
  <xsd:attribute name="Name" type="xsd:string" use="optional"/>
 
   --------  tag added -------------
   <xsd:attribute name="readOnly" use="optional" default="FALSE">
   --------- end tag added ------- 
  <xsd:attribute name="IsArray" use="optional" default="FALSE">
    <xsd:simpleType>
     <xsd:restriction base="xsd:NMTOKEN">
       <xsd:enumeration value="TRUE"/>
       <xsd:enumeration value="FALSE"/>
     </xsd:restriction>
    </xsd:simpleType>
  </xsd:attribute>
  <xsd:attribute name="Correlation" type="xsd:boolean" use="optional" default="false"/>
  <xsd:anyAttribute namespace="##other" processContents="lax"/>
 </xsd:complexType>
</xsd:element>

Context: Wants tags to say that the variable can be set at the process start but not change during the process life.

Description: The datafield or formal parameter is described as readOnly or as a constant and is value cannot be change.

Discussion at Sept 24 Meeting

The same attribute should be applied to the formal parameter, to indicate whether the formal parameter is read only. This would help the process designer to convey to engine that the value of formal parameter is not supposed to be changed during the execution of the process. This attribute should not be confused with the 'Mode' attribute. When a formal parameter has 'IN' value in the 'Mode' attribute, it does not mean that the formal parameter value cannot be changed within the process but this 'ReadOnly' attribute will enforce that.