Use the Business Process Choreographer Explorer details component
to display the properties of tasks, work items, activities, process instances,
and process templates.
Steps for this task
- Add the details component to the JavaServer Pages (JSP) file.
Add the <bpe:details> tag to the <h:form> tag.
The <bpe:details> tag must contain a model attribute.
You can add properties to the details component with the <bpe:property> tag.
If the details component does not contain any properties, all of the properties
of the object are displayed.
The following example shows
how to add a details component to display some of the properties for a task
instance.
<h:form>
<bpe:details model="#{TaskInstanceDetails}">
<bpe:property name="displayName" />
<bpe:property name="owner" />
<bpe:property name="kind" />
<bpe:property name="state" />
<bpe:property name="escalated" />
<bpe:property name="suspended" />
<bpe:property name="originator" />
<bpe:property name="activationTime" />
<bpe:property name="expirationTime" />
</bpe:details>
</h:form>
The model attribute refers to a managed bean, TaskInstanceDetails.
The bean provides the properties of the Java™ object.
- Configure the managed bean referred to in the <bpe:details> tag.
For the details component, this managed bean must be an instance
of the com.ibm.bpe.jsf.BPCDetailsHandler class. This handler class wraps a Java object
and exposes its public properties to the details component.
The
following example shows how to add the TaskInstanceDetails managed bean to
the configuration file.
<managed-bean>
<managed-bean-name>TaskInstanceDetails</managed-bean-name>
<managed-bean-class>com.ibm.bpe.jsf.BPCDetailsHandler</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>type</property-name>
<value>com.ibm.bpe.clientmodel.bean.TaskInstanceBean</value>
</managed-property>
</managed-bean>
The example shows that TaskInstanceDetails
has a configurable type property. The value of the type property specifies
the bean class (com.ibm.bpe.clientmodel.bean.TaskInstanceBean), the properties
of which are shown in the rows of the displayed details.
Result
Your JSF application now contains a JavaServer page that displays
the details of the specified object, for example, the details of a task instance.