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
17 replies
Subscribers
6 subscribers
Views
9886 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Node assignment with MNI
mariohp
over 8 years ago
Hi,
I need to create multiple instances of a node and assign each instance to a different group, for this purpose I'm using Multiple Node Instances with tp!instanceindex but when the flow reachs my MNI node I'm getting the following error message (pv!array contains the groups):
OriginalPostID-264794
Discussion posts and replies are publicly visible
0
PhilB
A Score Level 1
over 8 years ago
This may help:
forum.appian.com/.../could not find variable tp!instanceindex
...or this:
forum.appian.com/.../Data_Tab.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mariohp
over 8 years ago
Thank you but that information didn't help me, I'm trying to use the instanceindex in the Assignment tab too and I'm getting the same error.
It is possible to use the instanceindex to assign a task? I need to do that
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
How have you got the MNI set up? There's an option called "run one instance for each assignee" and then you can set the assignees to an array.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mariohp
over 8 years ago
Here is my configuration, the array contains two group names.
In the assignment tab I'm using this rule:
=pv!array[tp!instanceindex]
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Harsha
over 8 years ago
Can you try using index function as index(pv!array,tp!instanceindex,"") and see whether this helps?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mariohp
over 8 years ago
I'm getting the same error :(
There is a problem with the process TST_MH_POC_MNI. ERROR:An error occurred while evaluating expression: =index(pv!array, tp!instanceindex, "") (Could not find variable 'tp!instanceindex') (Data Inputs)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
Is the array an array of users?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mariohp
over 8 years ago
Is an array of groups, the task will be assigned to different groups
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
Have you tried using the "one instance per assignee" and assigning to the list of groups (without using tp!instanceIndex)? It's possible this will assign per user per group, though, and so may not fit your use case.
I have a feeling it's not possible to access tp!instanceIndex in the context of the assignee field, which is why you're seeing the error.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
PhilB
A Score Level 1
over 8 years ago
If that doesn't work, you could set it up as you have already (one instance per entry in "array) but use a sub process to wrap the task. You could then pass the full array of groups into the subprocess along with the tp!instanceIndex value, and access the assignee within the subprocess.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
>