How does a user map the received attributes from an event to a concept without passing each individual attribute to a rule and receives back a referenced concept?

How does a user map the received attributes from an event to a concept without passing each individual attribute to a rule and receives back a referenced concept?

book

Article ID: KB0093332

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Description:

User has a process variable of type Concept which is a contained concept. User gets an exception when trying to map values into the contained concept in the output map of the message start activity in the process. Does the map instantiate the Contained Concept? If not, how does the user map the received attributes from the event to a concept without passing each individual attribute to a rule and receives a referenced concept?

Issue/Introduction

How does a user map the received attributes from an event to a concept without passing each individual attribute to a rule and receives back a referenced concept?

Resolution

To be able to access the Event payload and the properties, the user needs to create a new process variable that holds the Event ID of the input Event, adding the EventID as an input value of the Rulefunction and load the Event in the RF using Event.getbyId(). The user will be able to access all Event payload values in the XSLT mapper for the parent (claim) concept. The child (contained concept properties) for the parent will be created when a property has been assigned to the contained concept in XSLT mapper.

+++++++
The user may still need to use a contained concept, but decision tables will not have access to process variables, only the concepts passed into the decision table when called from a process.
++++++++

To accomplish the above task, do the following:

1). To avoid defining duplicate variables for the Expression Gateway, add a simple boolean attribute.


2). Create a new Script task before executing the Expression Gateway.

 

3). In the script task. perform the check. Return the boolean attribute depending on the settings and use the new attribute in the expression of the Gateway.

Additional Information

None