Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
1460 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
We are trying to generate multiple instances of a docX smart service inside a su
supreetay
over 8 years ago
We are trying to generate multiple instances of a docX smart service inside a sub process for each item of a PV array. For which we have used the other tab-> Run one instance for each item in [pulldown list]->Spawn all
But while doing so we see the parent process is running multiple times instead of the sub process.
also the DOCX generated has all the items of the array in a single document.
OriginalPostID-168881
OriginalPostID-168881
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 8 years ago
To extract the corresponding item for the particular instance from an array you need to do pv!myArray[tp!instanceIndex].
tp!instanceIndex increments every time a new instance is started as part of the Multiple Node Instances configuration.
Make sure to select the option "Move on only once all instances complete" so that the flow doesn't continue until then.
The configuration should go in the DOCX node not in the sub-process (depending on your use case)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
supreetay
over 8 years ago
Thank you Eduardo.. I was using a counter that we created but not the task property but not on all inputs, now I am using the tp on all inputs and also selected the option you mentioned..
that fixed my issue. Thank you for your help
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
supreetay
over 8 years ago
I am using the tp!instanceIndex to index my array but the index is constantly one..It should increase each time the subprocess is executed right?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 8 years ago
Does that mean the issue is not resolved?
You need to make sure the Multiple Node Instance is indeed enabled in that node where you're using the tp!instanceIndex and that the node is the actual "DOCX Document From Template"
If you still have the issue where this tp! property doesn't auto-increment, please attach the relevant screenshots showing the configuration settings, how you're referencing tp!instanceIndex and the behavior you're seeing.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
supreetay
over 8 years ago
the issue is i am using docx smart service and if i use multiple instance the savein folder input was encountering errors.
I resolved the issue by using a counter that i created and increasing it at output and having multiple instances on the subprocess.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel