SECA mapping fileds

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

SECA mapping fileds

devmail
Hi,   is it possible to map the results fields of the service (calculateProductAverageCost) defined in a seca to the input fields of the action (createProductPrice)   Example:

   Thanks R.  

-------------------------------------------------------------------------------------------------
FreeMail powered by mail.de - MEHR SICHERHEIT, SERIOSITÄT UND KOMFORT
Reply | Threaded
Open this post in threaded view
|

Re: SECA mapping fileds

Pradeep Chaudhary-2
Yes, you can map the result fields of the service to the input fields of
action service by using 'env-name' attribute.

here is an example in which we are using resultant fields of
'createCommunicationEvent' service to the input of action service
'createSystemInfoNote' using env-name.
field-name: input param of createSystemInfoNote
env-name: result field of createCommunicationEvent

<eca service="createCommunicationEvent" event="commit">
        <condition field-name="statusId" operator="equals"
value="COM_ENTERED"/>
        <condition field-name="communicationEventTypeId" operator="equals"
value="COMMENT_NOTE"/>
        <condition field-name="partyIdTo" operator="is-not-empty"/>
        <set field-name="noteParty" env-name="partyIdTo"/>
        <set field-name="noteInfo" env-name="subject"/>
        <set field-name="moreInfoItemName" value="communicationEventId"/>
        <set field-name="moreInfoItemId" env-name="communicationEventId"/>
        <set field-name="moreInfoUrl"
value="/partymgr/control/MyCommunicationEvents"/>
        <action service="createSystemInfoNote" mode="sync"/>
    </eca>

Hope it helps, best regards,

On Wed, Aug 21, 2019 at 7:54 PM <[hidden email]> wrote:

> Hi,   is it possible to map the results fields of the service
> (calculateProductAverageCost) defined in a seca to the input fields of the
> action (createProductPrice)   Example:
>
>    Thanks R.
>
>
> -------------------------------------------------------------------------------------------------
> FreeMail powered by mail.de - MEHR SICHERHEIT, SERIOSITÄT UND KOMFORT
>


--
Pradeep Choudhary
Senior Enterprise Software Engineer

*HotWax Systems*
*Enterprise open source experts*
cell: +91-97527-20333
office: 0731-409-3684
http://www.hotwaxsystems.com