フォーラム

ホーム » Liferay Portal » English » 2. Using Liferay » General

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Sébastien Nadeau
Workflow: bypass assign to me
2012/03/08 8:58
答え

Sébastien Nadeau

ランク: New Member

投稿: 17

参加年月日: 2012/03/06

最近の投稿

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
2012/03/08 21:12
答え

Ravi Kumar Gupta

ランク: Liferay Legend

投稿: 1145

参加年月日: 2009/06/23

最近の投稿

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
2012/03/09 4:18
答え

Juan Gonzalez

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1872

参加年月日: 2008/10/28

最近の投稿

You can investigate kaleo scripts to get that working.
Sébastien Nadeau
RE: Workflow: bypass assign to me
2012/03/09 6:01
答え

Sébastien Nadeau

ランク: New Member

投稿: 17

参加年月日: 2012/03/06

最近の投稿

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
2012/03/10 1:18
答え

Juan Gonzalez

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1872

参加年月日: 2008/10/28

最近の投稿

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
2012/03/12 7:01
答え

Sébastien Nadeau

ランク: New Member

投稿: 17

参加年月日: 2012/03/06

最近の投稿

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.
画像の固定

添付ファイル: approve_directly.png (58.7k)
Juan Gonzalez
RE: Workflow: bypass assign to me
2012/03/12 9:33
答え

Juan Gonzalez

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1872

参加年月日: 2008/10/28

最近の投稿

In that case guess you'd have to modify workflow jsp...
Sébastien Nadeau
RE: Workflow: bypass assign to me
2012/03/12 10:36
答え

Sébastien Nadeau

ランク: New Member

投稿: 17

参加年月日: 2012/03/06

最近の投稿

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
2012/05/22 21:16
答え

vasudha karri

ランク: New Member

投稿: 17

参加年月日: 2012/05/02

最近の投稿

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
2012/05/23 0:21
答え

Rashmi Pandey

ランク: Junior Member

投稿: 89

参加年月日: 2011/09/13

最近の投稿

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
2012/05/23 3:27
答え

Subhash Pavuskar

ランク: Regular Member

投稿: 234

参加年月日: 2012/03/12

最近の投稿

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
2012/05/23 6:30
答え

Sébastien Nadeau

ランク: New Member

投稿: 17

参加年月日: 2012/03/06

最近の投稿

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
2012/06/22 1:19
答え

Hery Sutanto

ランク: Junior Member

投稿: 81

参加年月日: 2012/06/03

最近の投稿

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
2012/10/17 0:05
答え

Arcane Huang

ランク: Junior Member

投稿: 29

参加年月日: 2010/04/13

最近の投稿

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
2012/10/16 23:43
答え

Vishal Panchal

ランク: Expert

投稿: 277

参加年月日: 2012/05/20

最近の投稿

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
2013/01/07 23:33
答え

satish chandra

ランク: New Member

投稿: 3

参加年月日: 2012/12/07

最近の投稿

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
2013/05/16 12:12
答え

Manoj Prasad

ランク: New Member

投稿: 14

参加年月日: 2013/03/20

最近の投稿

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