Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
Sébastien Nadeau
Workflow: bypass assign to me
March 8, 2012 8:58 AM
Answer

Sébastien Nadeau

Rank: New Member

Posts: 17

Join Date: March 6, 2012

Recent Posts

Hi,

Using single approver workflow, I'd like to be able to bypass the "Assign to me" button and approve directly when there's a workflow task assigned to my role. Is this in any way possible?

Thanks!
Ravi Kumar Gupta
RE: Workflow: bypass assign to me
March 8, 2012 9:12 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1181

Join Date: June 23, 2009

Recent Posts

The workflow is already a single approver.. and even for that you want to bypass.. then just remove the workflow.. .. ??
Juan Gonzalez
RE: Workflow: bypass assign to me
March 9, 2012 4:18 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1967

Join Date: October 28, 2008

Recent Posts

You can investigate kaleo scripts to get that working.
Sébastien Nadeau
RE: Workflow: bypass assign to me
March 9, 2012 6:01 AM
Answer

Sébastien Nadeau

Rank: New Member

Posts: 17

Join Date: March 6, 2012

Recent Posts

Ravi,

If my role gives me the possibility to approve a content, why should I have to assign it to me before doing so? I understand the importance to be able to assign it to someone else sometimes, but when I can do it right away, why waste two clicks?

Those two clicks might not seem important when approving a single content, but when you,re in a large production environment where, hundreds of contents will get edited everyday (which is the case with us actually), you really want to avoid these 2 extra clicks.

Your idea is very good nonetheless, I will simply disable the workflow while we are in heavy editing mode and enable it back again once we are back in a more stable mode.

As for the other idea of messing with the Kaleo source code, I don't feel comfortable at all doing so. I examined it quickly yesterday and it seems very big and complicated when seen by eyes of someone who didn't program it. I bet that must be something I could change in a .jsp file, but which one?

Thanks anyway!
Juan Gonzalez
RE: Workflow: bypass assign to me
March 10, 2012 1:18 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1967

Join Date: October 28, 2008

Recent Posts

What I tried to say before is that this can be done changing kaleo workflow definition xml files, not source code:

http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/workflow-with-kal-2
Sébastien Nadeau
RE: Workflow: bypass assign to me
March 12, 2012 7:01 AM
Answer

Sébastien Nadeau

Rank: New Member

Posts: 17

Join Date: March 6, 2012

Recent Posts

Hi Juan,

I have read this documentation and I worked out a new xml file to fit my needs, but I cannot find the way to customize this. I'm used to Workflow, I understand the concepts, but I'm unable to configure this fine grained need without a more precise documentation.

Take a look at the screenshot I'm attaching to this message to see exactly what I need and, if you can give me a practical tip on how to do that in the kaleo xml file, it would be much appreciated.

I would like to add the "Approve" choice to the Actions menu for the "Assigned to my Roles" tasks.
Attachment

Attachments: approve_directly.png (58.7k)
Juan Gonzalez
RE: Workflow: bypass assign to me
March 12, 2012 9:33 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1967

Join Date: October 28, 2008

Recent Posts

In that case guess you'd have to modify workflow jsp...
Sébastien Nadeau
RE: Workflow: bypass assign to me
March 12, 2012 10:36 AM
Answer

Sébastien Nadeau

Rank: New Member

Posts: 17

Join Date: March 6, 2012

Recent Posts

Thanks Juan.

Anyone has a hint on what file to modify? There's absolutely no documentation on that and opening the jsp files one by one is a task I can't afford and won't "assign to me"!
vasudha karri
RE: Workflow: bypass assign to me
May 22, 2012 9:16 PM
Answer

vasudha karri

Rank: New Member

Posts: 17

Join Date: May 2, 2012

Recent Posts

Hi sebastien nadeau..

Did u find solution for this?if yes then please post here ..i too have the same requirement

Thanks and regards
k.vasudha
Rashmi Pandey
RE: Workflow: bypass assign to me
May 23, 2012 12:21 AM
Answer

Rashmi Pandey

Rank: Junior Member

Posts: 89

Join Date: September 13, 2011

Recent Posts

I also have the same problem.. If u have solved , please help us also

Thanks,
Rashmi Agnihotri
Subhash Pavuskar
RE: Workflow: bypass assign to me
May 23, 2012 3:27 AM
Answer

Subhash Pavuskar

Rank: Regular Member

Posts: 234

Join Date: March 12, 2012

Recent Posts

Hello Everyone,

If you want to modify the approval of user define you can do this by modifying "liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23/temp/7-kaleo-web/WEB-INF/classes/META-INF/definitions/single-approver-definition.xml " here you need to modify.
 1<assignments>
 2            <roles>
 3                <role>
 4                    <role-type>Regular</role-type>
 5                    <name>User Define Role</name>
 6                </role>
 7               
 8            </roles>
 9        </assignments>



save this file and restart your server.
->Now create a new account in role you can assign user define role.
Sorry If i am wrong.
Sébastien Nadeau
RE: Workflow: bypass assign to me
May 23, 2012 6:30 AM
Answer

Sébastien Nadeau

Rank: New Member

Posts: 17

Join Date: March 6, 2012

Recent Posts

Hi again folks,

No, I havent found a solution yet and I have other problems that have higher priority to solve right now. All I can say is that I don't want to modify the workflow logic, only the interface behavior.

The fact that you need to assign a task to yourself before approving it is, in my book, a waste of time.

Understand me: I'm not saying this feature is uninteresting, I'm just saying you should be able to approve directly when you have the right to do so.

Since my first post I have written a couple of hooks in other projects. Now I will probably be able to do so with the workflow. If I ever find something interesting, I will share it with the folks here.

Sébastien
Hery Sutanto
RE: Workflow: bypass assign to me
June 22, 2012 1:19 AM
Answer

Hery Sutanto

Rank: Junior Member

Posts: 81

Join Date: June 3, 2012

Recent Posts

Hi,

I run into the same issue... is there anyone know how to implement this??
how to skip the assignment process? Can I just skip this and directly assigned the task to all member who has the corresponding role that is defined within the xml file?

I might use multi-tier approval... and this will be very troublesome, if Need to assign the task one at each time...

Thanks,

Hery
Arcane Huang
RE: Workflow: bypass assign to me
October 17, 2012 12:05 AM
Answer

Arcane Huang

Rank: Junior Member

Posts: 31

Join Date: April 13, 2010

Recent Posts

refer to liferay workflow definition

for 6.0.x
you can assign task to someone user directly instead of roles.
and user can be specified with "user-id", "screen-name" and "email-address"
1<assignments>
2  <user>
3    <screen-name>user1</screen-name>
4  </user>
5</assignments>


for 6.1.x
besides to roles and user, task can be assigned with resource-actions, scripted-assignment.
Vishal Panchal
RE: Workflow: bypass assign to me
October 16, 2012 11:43 PM
Answer

Vishal Panchal

Rank: Expert

Posts: 277

Join Date: May 20, 2012

Recent Posts

Hi all,

Basically while creating workflow definition we are assign the task to particular ROLE for approval/rejection.

So , because of that in My Workflow Tasks portlet we will get the task under Assigned to my Roles category but not under Assigned to me.

Ultimately what happens when the task is created it will be assigned to all the users who are assigned the specific role.

So now all your solution is you can assign the task not to a specific ROLE rather you may assigned task to specific userId , screen-name , emailId.

Please modify your workflow-definition.xml file by following tags.

Instead of below tag..

 1<assignments>
 2            <roles>
 3                <role>
 4                    <role-type>Regular</role-type>
 5                    <name>User Define Role</name>
 6                </role>
 7               
 8            </roles>
 9        </assignments>


Try to use either of the following tags.

<assignments>
<user>
<user-id>user id</user-id>
</user>
</assignments>

OR

<assignments>
<user>
<screen-name>screen name</screen-name>
</user>
</assignments>

OR

<assignments>
<user>
<email-address>email address</email-address>
</user>
</assignments>.

By doing this as the task is created it will be directly listed in the Assigned to me and you will have directly approve button as well.

please let me know if any further inputs require from my side.emoticon

Thanks & Regards,
Vishal R. Panchal
satish chandra
RE: Workflow: bypass assign to me
January 7, 2013 11:33 PM
Answer

satish chandra

Rank: New Member

Posts: 3

Join Date: December 7, 2012

Recent Posts

Hey..


The JSP that displays the My Workflow Tasks it workflow_tasks.jspf.
one need to override the JSP, to add custom defined functionalities.
you need to add a fixer JAR for all the required Java files or add a hook to capture the request and process with your local files.
Manoj Prasad
RE: Workflow: bypass assign to me
May 16, 2013 12:12 PM
Answer

Manoj Prasad

Rank: New Member

Posts: 14

Join Date: March 20, 2013

Recent Posts

I am using Activiti workflow plugin from emforge.
I am able to route work based on Roles. It demands that i click twice, once to "Assign to me" and then to take action on assigned tasks. How to configure such that the work gets routed directly to a person/user

Currently i have a User Task with
Assignee: <blank>
Candidate Users: <blank>
Candidate Groups: HR Manager

and work gets routed to the HR Manager role.

When I tried putting Assignee as "hr1" which is the "Screen Name" of the user belonging to "HR Manager" role.
Assignee: hr1
Candidate Users: <blank>
Candidate Groups: <blank>

The the work does not get routed to the assignee.

Please help me route work to a individual without getting assigned to a role.

regards
Manoj