Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Pass data from workflow process to flex application

Avatar

Not applicable
Hi everyone,



how can I pass data from a workflow process to a flex application contained in the workspace?



Below is what i understand from the adobe document. But it works only if I am passing data from one flex application to the same flex application on the next step of a workflow. The problem is how... for e.g. like passing the value of a process variable to a flex application.



When a user open up a flex application, there is some handshaking that needs to be done between flex application and the workspace. The flex application will call 'SetReady' function from 'lc:FormConnector'. The workspace then trigger a event for 'formInitialData' which the flex application will have to handle. The flex app will have a event listener to handle the event. A initialize data 'DataEvent' is surposed to be passed through the 'fromInitialData' to the flex app, and the flex application can make use of the data to initialize it application.



Thanks...
0 Replies

Avatar

Level 4
Use a SetValue activity and in the mapping, do this



Location: /process_data/form2/object/data

Expression: /process_data/form1/object/data



or if you have an XML variable (I haven't tried this, but I assume it should work)



Location: /process_data/form2/object/data

Expression: /process_data/xml_data