Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# Displaying a Case Object in a User Task - Using a Pageflow

You can display a case object as part of a pageflow that is displayed when a user performs a user task. If the user updates data for the case object, you must manually update this data in a subsequent process step.

Before you begin

An already populated data field must exist in the business process, containing a case reference to the case object that you want to display.

Procedure
1. Select the user task from which the form is displayed.
2. On the Interface tab of the Properties view, make sure that the appropriate Case Reference data field is included in the Parameters list, either explicitly or as part of the [All Process Data] setting.
3. On the General tab of the Properties view, click Pageflow, select the pageflow process that you want to use, then click Open PageFlow.

   Make sure that the pageflow process contains the Case Reference data field as a formal Parameter.

4. Create a new data field, of type BOM Type, which references the appropriate case class.
5. Add a script task that uses the read method available on the case reference to read the associated case object data and assign it to the local business object.

   For example, the following script reads the data from the case object referenced by `custRef` and assigns it to the `cust` local business object:

       data.cust = bpm.caseData.read(data.custRef);

   This creates a local business object that contains a copy of the case object and is scoped to the pageflow process.

6. Add a user task that displays the local business object in a form, allowing the user to view or update the local business object as required.
   Association and aggregation relationships in the case object are ignored when the form is generated.
7. If necessary, add a service task (and, optionally, appropriate error handling) to update the case object with the changes to the local business object - see Updating a Case Object from a ServiceTask.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Business Studio™ - BPM Edition

Copyright © 2015-2023. Cloud Software Group, Inc. All Rights Reserved.