04-18-2018 01:17 AM
Hi Team,
I am using activiti in my spring web application. I was defined one process as follows,
Here i was defined parallel tasks are three. But in my scenario, it may be one or more parallel tasks then please let me know how can i define the diagram? Please help me out this?
Thanks
04-19-2018 02:57 AM
Please anyone reply me about this
04-20-2018 03:29 AM
Go for a multi instance user task, based on a list of objects. The execution depends on the number of objects that are there in the list.
04-23-2018 01:05 AM
Hi Hari,
Thank you for your reply. Please how can i get list objects in multi instance tab.
Here i was placed count ( 2 ) statically at loop cardinality. how can i dynamic this from db.
Thanks
04-23-2018 02:04 AM
Instead of setting the loop cardinality do it something like this.
Collection is the list on which you want to iterate upon. and Element variable is what you call an item in the list.
Ensure the List is available by the time it reaches this(User Task, Call Activiti, etc) step for it to iterate as per your need.
04-23-2018 02:59 AM
Ya i tried like that. I was prepared the list one of the task listener. But It is skipping the list when users are available. please help me out of this.
04-23-2018 03:02 AM
and list as like List<String> format. Now how can i set this.
04-23-2018 03:04 AM
Try doing it in a service task instead of a task listener Or start the process with the variable containing the list of values.
04-23-2018 08:38 AM
Thank you Hari. Your suggestion is helped me. But small issue, Now the instances are two. the tasks are visible to both users until they complete to it. Please let me know, if user1 completed his task then the task is not visible to that user. this scenario missing. i need to achieve this. if user1 completed his task it is visible to both users until another user also complete the task.
please tell me how to come out from this.
Thanks
04-23-2018 08:52 AM
Didn't get you here.
If you need the task to be visible to all users but only one user should complete it, then you can assign the task to a group. All users who are part of the group will be able to see that task. One of the users who wish to work on it will claim it. Once the task is claimed, then it will no longer be in the group and hence others will not be able to see it. The user who claimed it can complete the task once he did what he has to do.
Explore our Alfresco products with the links below. Use labels to filter content by product module.