Workflow: bypass assign to meWorkflow: bypass assign to mehttps://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=128937372024-03-29T06:49:34Z2024-03-29T06:49:34ZRE: Workflow: bypass assign to meALEX KEILhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1174519962019-10-14T22:49:04Z2019-10-14T22:49:04ZI had a similar issue to this. In the end i wrote up some custom code to do the job, and then put that in my workflow file.<br />In the assiging part of the workflow xml you can assign to a user or a role<br /><br />if you want to assign to a role, you put user = null and role = <the role>. If you want to assign to a user, you put User= <user> and role = null.<br /><br />Working from this, i made two functions<br />AssignToUser<br />AssignToRole<br />In both cases i pass in the role name (and some other things)<br /><br />For the User function, it will check the role that i passed in and count how many users are in the role. If there is more than one user in the role it will jsut return NULL (so it doesn't assign to a user). If there is only one person in the role, it will assign just to that user<br /><br />For the Role function, it does much the same, checks how many people are in the role. If there is more than one person in the role, it will return that role (and assign to that role). If there is only one person in the role, it will return NULL (and not assign to the role)<br /><br />The combination of the two ensures that the task is either assigned to a single user (if there is only one user in the role) or to a role (if there is more than one person in the role). This way, if there is only one person in a role, they don't have to do the 'Assign to Me' part.<br /><br />Hope this helpsALEX KEIL2019-10-14T22:49:04ZRE: Workflow: bypass assign to mekrishna jamihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=819485622016-11-02T09:51:04Z2016-11-02T09:51:04ZDid it get solved, if yes can you help mekrishna jami2016-11-02T09:51:04ZRE: Workflow: bypass assign to meManoj Prasadhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=248021882013-05-16T19:12:36Z2013-05-16T19:12:36ZI am using Activiti workflow plugin from emforge.<br />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<br /><br />Currently i have a User Task with <br />Assignee: <blank><br />Candidate Users: <blank> <br />Candidate Groups: HR Manager<br /><br />and work gets routed to the HR Manager role.<br /><br />When I tried putting Assignee as "hr1" which is the "Screen Name" of the user belonging to "HR Manager" role. <br />Assignee: hr1<br />Candidate Users: <blank> <br />Candidate Groups: <blank> <br /><br />The the work does not get routed to the assignee. <br /><br />Please help me route work to a individual without getting assigned to a role.<br /><br />regards<br />ManojManoj Prasad2013-05-16T19:12:36ZRE: Workflow: bypass assign to mesatish chandrahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=190278802013-01-08T07:33:42Z2013-01-08T07:33:42ZHey..<br /><br /><br />The JSP that displays the My Workflow Tasks it workflow_tasks.jspf. <br />one need to override the JSP, to add custom defined functionalities. <br />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.satish chandra2013-01-08T07:33:42ZRE: Workflow: bypass assign to meVishal Panchalhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=172179472012-10-17T06:43:24Z2012-10-17T06:43:24Z<html><head></head><body>Hi all,<br><br>Basically while creating workflow definition we are assign the task to particular <strong>ROLE</strong> for approval/rejection.<br><br>So , because of that in My Workflow Tasks portlet we will get the task under <strong>Assigned to my Roles</strong> category but not under <strong>Assigned to me</strong>.<br><br>Ultimately what happens when the task is created it will be assigned to all the users who are assigned the specific role.<br><br>So now all your solution is you can assign the task<strong> not to a specific ROLE</strong> rather you may assigned task to specific userId , screen-name , emailId.<br><br>Please modify your workflow-definition.xml file by following tags.<br><br>Instead of below tag..<br><br><pre><code><assignments>
<roles>
<role>
<role-type>Regular</role-type>
<name>User Define Role</name>
</role>
</roles>
</assignments></code></pre><br><br>Try to use either of the following tags.<br><br><assignments><br><user><br><user-id>user id</user-id><br></user><br></assignments><br><br>OR<br><br><assignments><br><user><br><screen-name>screen name</screen-name><br></user><br></assignments><br><br>OR<br><br><assignments><br><user><br><email-address>email address</email-address><br></user><br></assignments>.<br><br>By doing this as the task is created it will be directly listed in the <strong>Assigned to me</strong> and you will have directly approve button as well.<br><br>please let me know if any further inputs require from my side.<img alt="emoticon" src="@theme_images_path@/emoticons/cool.gif"><br><br>Thanks & Regards,<br>Vishal R. Panchal</body></html>Vishal Panchal2012-10-17T06:43:24ZRE: Workflow: bypass assign to meArcane Huanghttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=172183202012-10-17T06:22:35Z2012-10-17T06:22:35Z<html><head></head><body>refer to liferay workflow definition<br><br>for 6.0.x<br>you can assign task to someone user directly instead of roles.<br>and user can be specified with "user-id", "screen-name" and "email-address"<br><pre><code><assignments>
<user>
<screen-name>user1</screen-name>
</user>
</assignments>
</code></pre><br><br>for 6.1.x<br>besides to roles and user, task can be assigned with resource-actions, scripted-assignment.</body></html>Arcane Huang2012-10-17T06:22:35ZRE: Workflow: bypass assign to meHery Sutantohttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=145303832012-06-22T08:19:49Z2012-06-22T08:19:49ZHi,<br /><br />I run into the same issue... is there anyone know how to implement this??<br />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?<br /><br />I might use multi-tier approval... and this will be very troublesome, if Need to assign the task one at each time...<br /><br />Thanks,<br /><br />HeryHery Sutanto2012-06-22T08:19:49ZRE: Workflow: bypass assign to meSébastien Nadeauhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=140762222012-05-23T13:30:25Z2012-05-23T13:30:25ZHi again folks,<br /><br />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.<br /><br />The fact that you need to assign a task to yourself before approving it is, in my book, a waste of time.<br /><br />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.<br /><br />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.<br /><br />SébastienSébastien Nadeau2012-05-23T13:30:25ZRE: Workflow: bypass assign to meSubhash Pavuskarhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=140736442012-05-23T10:22:56Z2012-05-23T10:22:56Z<html><head></head><body>Hello Everyone,<br><br>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.<br><pre><code><assignments>
<roles>
<role>
<role-type>Regular</role-type>
<name>User Define Role</name>
</role>
</roles>
</assignments></code></pre><br><br><br>save this file and restart your server.<br>->Now create a new account in role you can assign user define role.<br>Sorry If i am wrong.</body></html>Subhash Pavuskar2012-05-23T10:22:56ZRE: Workflow: bypass assign to meRashmi Pandeyhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=140702902012-05-23T07:21:41Z2012-05-23T07:21:41ZI also have the same problem.. If u have solved , please help us also<br /><br />Thanks,<br />Rashmi AgnihotriRashmi Pandey2012-05-23T07:21:41ZRE: Workflow: bypass assign to mevasudha karrihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=140671892012-05-23T04:16:17Z2012-05-23T04:16:17ZHi sebastien nadeau..<br /><br />Did u find solution for this?if yes then please post here ..i too have the same requirement<br /><br />Thanks and regards<br />k.vasudhavasudha karri2012-05-23T04:16:17ZRE: Workflow: bypass assign to meSébastien Nadeauhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=129434402012-03-12T17:34:44Z2012-03-12T17:34:44ZThanks Juan.<br /><br />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"!Sébastien Nadeau2012-03-12T17:34:44ZRE: Workflow: bypass assign to meJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=129417492012-03-12T16:33:21Z2012-03-12T16:33:21ZIn that case guess you'd have to modify workflow jsp...Juan Gonzalez2012-03-12T16:33:21ZRE: Workflow: bypass assign to meSébastien Nadeauhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=129393932012-03-12T13:58:52Z2012-03-12T13:58:52ZHi Juan,<br /><br />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.<br /><br />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.<br /><br />I would like to add the "Approve" choice to the Actions menu for the "Assigned to my Roles" tasks.Sébastien Nadeau2012-03-12T13:58:52ZRE: Workflow: bypass assign to meJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=129189662012-03-10T09:18:46Z2012-03-10T09:18:46ZWhat I tried to say before is that this can be done changing kaleo workflow definition xml files, not source code:<br /><br /> <a href="http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/workflow-with-kal-2">http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/workflow-with-kal-2</a>Juan Gonzalez2012-03-10T09:18:46ZRE: Workflow: bypass assign to meSébastien Nadeauhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=129094522012-03-09T14:01:14Z2012-03-09T14:01:14ZRavi,<br /><br />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?<br /><br />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.<br /><br />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.<br /><br />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?<br /><br />Thanks anyway!Sébastien Nadeau2012-03-09T14:01:14ZRE: Workflow: bypass assign to meJuan Gonzalezhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=129085612012-03-09T12:18:52Z2012-03-09T12:18:52ZYou can investigate kaleo scripts to get that working.Juan Gonzalez2012-03-09T12:18:52ZRE: Workflow: bypass assign to meRavi Kumar Guptahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=129