?
Solved

Setting perfomers dynamically

Posted on 2010-01-07
35
Medium Priority
?
1,082 Views
Last Modified: 2013-11-15
In my Auto-activity, I doing the following to set a queue as a performer


but even after this auto-activity has run, performer does not get set correctly.

This code works fine, if I set performer as a group. But it does not work when I try to set performer as a Queue.

Please let me know what else needs to be done.

thank you
IDfId workflowId = workItem.getWorkflowId();
        IDfWorkflow wfObj = (IDfWorkflow)session.getObject(workflowId);
      
        int actCount = forwardActivitiesList.getCount();
        
        for(int i=0; i<actCount; i++) {
           IDfActivity activity = (IDfActivity)forwardActivitiesList.get(i);             
           if(activity.getObjectName().equalsIgnoreCase("Create Company")) {
         	  String impsPerfomerQueue = "imps_"+countryCode+"_branch";
                  DfList performers = new DfList();
                  performers.append(impsPerfomerQueue);
                  wfObj.setPerformers("Create Company", performers);                    
            }              

          }

Open in new window

0
Comment
Question by:ank9
  • 20
  • 15
35 Comments
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26205582
What version of dctm are you using? Have you validated that workqueues are setup correctly? can you setup a manual activity and assign a workqueue as the performer?

In recent versions of dctm, you can use dql query activities along with process variables to dynamically set workqueues as performers.
0
 

Author Comment

by:ank9
ID: 26206597
I am using Documentum 6.5 SP1
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26206624
can you setup a manual activity and assign a workqueue as the performer?

is there a specific problem you're trying to solve?

When you create your performers DfList, are you setting a performer type? I believe 10 is a work queue. This is detailed in the dfc api for IdfWorkflow.


you could use a dql activity to set a process variable:

select 'imps_'+countryCode+'_branch' as myProcessVar from dm_document where r_object_id = ?

Then map myProcessVar to a Process Variable

Then on your manual activity, select a workflow performer and set performer as a workqueue and define the workqueue from process data.

This prevents you from having to edit code, deploy to JMS, restart server, etc.. You can control all of your configurations from within Process Builder.


How does that sound?
0
New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

 

Author Comment

by:ank9
ID: 26206700
Thanks for your response.
Will try all this one by one. So much information is overwhelming for me :)
>>can you setup a manual activity and assign a workqueue as the performer?

I created a new workflow with just 2 manual activities. In the "Performer" tab, I selected the performer option as  "Work queue: Determined in Activity "<Workflow Initiation>".
Now in webtop, I selected a document and clicked on "Start Attachments".  It asked me to select the performer. I selected "imps_at_branch" queue and clicked on Finish.
In the queue definition of "imps_at_branch" queue, I have defined "Active users" as group name "at_brch_grp".
User "user1" is a member of group "at_brch_grp".
So I was expecting that this user should get the task. But no task is coming to the inbox of this user. Seems like I am not setting up the queues correctly.
Please help me resolve this.
 
Thank you  
 
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26206732
When you say, "But no task is coming to the inbox of this user." are you referring to the actual inbox of the user? When you use workqueues, the workitem will end up in the actual workqueue opposed to the user's inbox.

did you look in the imps_at_branch queue for the workitem?
0
 

Author Comment

by:ank9
ID: 26206761
I am looking at the "imps_at_branch" queue under "Work Queues"
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26207113
ok, so you're looking at the actual work queue folder and the workitem does not appear.

Can you query the server and find out where the workitem is? a dql query could let you know what activity it's at.

Are there any errors in the docbase admin's inbox?

Can you try to select a workqueue directly in the activity instead of workflow initiation?

It is starting to look like your workqueues are not installed correctly. You have the Process Engine installed, correct?
0
 

Author Comment

by:ank9
ID: 26208558
The workitem is at Activity-1 which is my first manual activity. Also the performer is set as the queue name "imps_at_branch". Still I cannot see the workitem. Please refer to the attached screenshot.
 

Workitem.JPG
0
 

Author Comment

by:ank9
ID: 26208641
>>Are there any errors in the docbase admin's inbox?

There are no errors in the admin's inbox
>>Can you try to select a workqueue directly in the activity instead of workflow initiation?
Please let me know how to do this.
Process Engine has already been installed.
thank you
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26210227
It appears like that screenshot is of the workflow instance opposed to the workitem, with is within an instance of that workflow. What query did you use to get that result? we want to pull up the dmi_workitem.

As for selecting a workqueue directly, it is as simple as create your manual activity,
select performer as Work Queue
Define Performers "Assign performer(s) now"
click next
pick a queue
click next
click finish


Can you double check that your user has access to the work queue? It appears like things are setup correctly from the process side.
0
 

Author Comment

by:ank9
ID: 26280415
Please refer to the attached screenshot. It contains the workitem details.
Workitem1.JPG
0
 

Author Comment

by:ank9
ID: 26280427
Let me list the steps I followed
1. Go to DA. Right click on the document and select "Start Attachments"
2. Select the flow name and click on OK.
3. click on Next
4. It shows me the Task name and under "Performers" value as "Not assigned". Click on the "Select" button and select the queue "imps_at_branch".
5. Now, under Performers, I see the value "Work queue imps_at_branch".
6. Click on finish.
Still I cannot see the task under the queue.
Please help.
 
Thank you
0
 

Author Comment

by:ank9
ID: 26280538
I assigned "dmadmin" to the queue as well. Now using DA, I went to "Work queue monitor" and selected the category from "My Categories". Now all the queues are getting dispalyed and within it all the tasks as well.

But I can see this only from Work Queue monitor. Still the other users who do not have super user access cannot see the tasks in their queues.
In Inbox, "Get Next Task" checkbox is selected but can't find any such checkbox in "{Repository Name} --> Work Queues --> {Work Queue Name}"

Thank you
0
 

Author Comment

by:ank9
ID: 26280943
Also, in "Work Queue monitor" although I can view a workitem, but it is in unassigned state. Could this be the problem? I have to click on the "Assign" button and assign it to the queue. Then it is available to the users assigned to that queue.
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26281090
Sounds correct. Can you send a screenshot showing the users assigned to the work queue. It sounds like the queue is working correctly.
0
 

Author Comment

by:ank9
ID: 26281281
Please find attached the screenshots.
screenshots.doc
0
 

Author Comment

by:ank9
ID: 26281313
Please find attached the workflow screenshot as well.
Workflow-screenshot.JPG
0
 

Author Comment

by:ank9
ID: 26281812
Hi Rsulliv1
Did you have an opportunity to look at the word document containing screenshots.
Thank you
 
 
 
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26283095
I'm in cst, so I'm only available during the day and evening. I'll check out the posts in the next few hours.
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26286656
Do you know why all of the tasks are suspended?
0
 

Author Comment

by:ank9
ID: 26289602
>>Do you know why all of the tasks are suspended?
Because those workflows were deleted. Only "Activity-1" is the one which us being used for testing (highlighted as red). Please ignore the other tasks.
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26289650
Does your user have privileges to the package within the process?

I created the same process and I see no issues.
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26289666
Have you tried to use the Process Builder built into Process Builder? I would start there to try and flush out the issue with your process.
0
 

Author Comment

by:ank9
ID: 26289716
thank you

>>Does your user have privileges to the package within the process?

One of the user's assigned to the queue is superuser. So privileges should not be an issue. Still how do I make sure?


0
 

Author Comment

by:ank9
ID: 26289789
I tried using the workflow build in Process Builder.

Please refer to the attached screenshot. It does not show anything when I click on Acquire.

acquire.JPG
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26290017
>> One of the user's assigned to the queue is superuser. So privileges should not be an issue. Still how do I make sure?

I would create an obj of the type defined in the package in DA, then ensure your user has access.

It appears that the debugger doesn't work with queues as i'm seeing the same thing.



I would suggest starting from scratch. Create a new user, process, & object and step through the process. Something is apparently not configured correctly in your system. It should take only a few minutes to recreate this test from scratch.
0
 

Author Comment

by:ank9
ID: 26290472
>>I would create an obj of the type defined in the package in DA, then ensure your user has access.

I did the same thing. The user has access to this object because this user selected this object and did "Start Attachments".
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26290496
Did you try to create everything from scratch? I'm starting to run out of ideas. If everything is configured correctly, this simple example should work no problem.

Are your workqueue jobs running?
0
 

Author Comment

by:ank9
ID: 26290597
I configure everything again.

These jobs are running
1. dm_QmPriorityAging
2. dm_QmPriorityNotification
3. dm_QmThresholdNotification

This is InActive
1. dm_QueueMgt

Do I need to check any other job as well?


0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26294730
Those are the main three queue jobs, so that looks correct.

What happened when you created everything anew? a new queue policy,  new queue, new user, new process w/new activities & a plain dm_document process

0
 

Author Comment

by:ank9
ID: 26300052
Thanks for your reponse.

Did the following

1. Created a group called "mygroup". Added dmadmin and user1 as its members. dmadmin is a

superuser while user1 is a normal user with "Coordinator" role. Added mygroup to "queue_advance_processor" role.


2. Created a Work Queue category called MyCategory

3. Created a Work Queue Policy called MyPolicy

4. Created queues called "myqueue-1" and "myqueue-2" in "MyCategory".

5. Added "mygroup" as member of both the queues.

6. Created a process called "MyProcess". This process has 2 manual activities

"MyProcess-Act1" and "MyProcess-Act2". Specify package as that of type dm_document.

7. For "MyProcess-Act1", in Performer tab select the performer as "Work Queue" and select the queue as "myqueue-1".

8. For "MyProcess-Act2", in Performer tab select the performer as "Work Queue" and select the queue as "myqueue-2".

9. Create a new document of type dm_document. "mygroup" has WRITE permission on the document.

10. Start the workflow on the newly imported file.



The item should have come to the "Work Queue" inbox. but it doesn't.
0
 

Author Comment

by:ank9
ID: 26300143
Figured out the problem. Please refer to the attached document.
It does not work when navigated through the left navigation tree.

Please let me know if this is the expected behavior or a bug.

ProblemWQ.doc
0
 
LVL 8

Accepted Solution

by:
Rsulliv1 earned 2000 total points
ID: 26307679
I am seeing the same behavior.

I don't see any bugs listed in powerlink regarding this, but DA is meant for administrative tasks opposed to processing tasks. I took a look in the DA user guide and I didn't see anything about using that node, but I'd agree that it should populate correctly if it's visible.

When you use webtop, taskspace or any other WDK app, you are able to see the populated queues, correct?

0
 

Author Comment

by:ank9
ID: 26311613
I am seeing the same behavior in Webtop as well. Which version of Documentum are you using? I have 6.5SP1
0
 
LVL 8

Expert Comment

by:Rsulliv1
ID: 26311689
6.5sp2

I'm testing with Taskspace and the different queue tabs are working correctly. I have webtop installed on a different environment. I'll check that out tomorrow.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we will look at our content management system as a whole, to get an idea of how we will start to manage these content items.
Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question