global var in a process and changing xdp in an activity

Avatar

Avatar
Level 6
neptas
Level 6

Likes

0 likes

Total Posts

259 posts

Correct reply

0 solutions
View profile

Avatar
Level 6
neptas
Level 6

Likes

0 likes

Total Posts

259 posts

Correct reply

0 solutions
View profile
neptas
Level 6

21-10-2008

Hello,



I would like to create a process that would have a global variable to that process. The global variable should contain a xdp form.



In each step/activity of my process I would like to get the xdp file from the global variable, change the xdp file (for instance: insert some objects), and then make that changes persistnet in the global variable, so that a next step would bet the changed xdp.



So my questions are:



Is it possible to have a global variable like this?

How it is defined? Any example?



Is it posible to define an activity to change a xdp template? Is it possible to associate code/script to a process or I would need to create a new type of activity and import it to workbench? Any example?



Thank you

Replies

Avatar

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 5
yodadobe
Level 5

Likes

12 likes

Total Posts

298 posts

Correct reply

10 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
yodadobe
Level 5

21-10-2008

All the variables are essentially global to the process. Creating a new variable of type xfaForm will do what you ask. If you add an Assign Task, there is a properties section for Form Data Mappings. If you set the input and output to the xfaFrom variable, then any changes made are applied to that variable. You can modify values with a Set Value step using xpath. It is best when you create the form, that you associate a schema with it. Having a schema associated with it with allow you to expand down to any element in the form/variable in the XPath Builder.