SOA Magazine IV 01.2015
SOA Magazine IV 01.2015
SOA Magazine IV 01.2015
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Figure 2 - Address Complex Type<br />
Our HTG transformation model Engine is structured on java classes to represent human tasks attributes.<br />
The java classes we have created for that purpose are: HumanTaskAttribute,<br />
HumanTaskAttributeFacade, HumanTaskPayload. Their relationship can be viewed in Figure 3.<br />
Figure 3 - HTG transformation model Engine Java Classes<br />
HumanTaskAttribute java class represent each attribute of the human task payload regardless of being<br />
based on a primitive type, simple type or even complex type. In those cases in which the attribute is a<br />
complex type, each XSD element is represented as a HumanTaskAttribute. The variables we have<br />
defined for this java class are:<br />
<br />
<br />
<br />
<br />
<br />
<br />
name – internal attribute name. If the attribute is a complex type the name is the<br />
concatenation of human task’s attribute name plus the name of the element inside the<br />
XSD.<br />
value – the value the attribute is to be set.<br />
type – contains the type of the attribute, i.e. STRING for string attributes, INTEGER for<br />
integer attributes, and so on. For complex types the type is similar to XSD name in order<br />
to be easily recognized, i.e. ADDRESS for attributes based on address XSD.<br />
isReadOnly – true if the attribute is not editable, otherwise false.<br />
isRequired – true if the attribute is mandatory, otherwise false.<br />
isHidden – true if the attribute must not be displayed on the interface, otherwise false.<br />
This type of attributes behaves like auxiliary variables.<br />
Copyright © 2015 | All Rights Reserved <strong>SOA</strong> <strong>Magazine</strong> <strong>IV</strong> 27