Alfresco workflow create user task dinamically - workflow

I have a custom workflow in Alfresco 5.2 community. I have a parallel user task assigned to a activiti:collection="mywf_reviewersAssignees", and that variable is chosen at the beginning of the workflow. All works fine.
Now, under some circumstances, while the reviewers are completing their task, I need to add another user to that collection, so that another user task is created.
I have managed to handle the "when" correctly, but I do not know how to create/add a user task.
In other words I need to "reassign" the task, extending the default Alfresco behavior. Instead of changing the task owner I need to close the previous user task and create a new one to the new user.
Is this possibile?, thanks
EDIT
I've read this link (How to assign Workflow to the new user of the group?) which suggest to use the candidateUsers variable, but I need all of the users complete their work, I can't have them as candidate and let only one to do their work
A similar question is asked here Create User Multi Instance Task Programatically, but unfortunately none answered

Related

Create task automatically when creating bug in Azure Devops Server

We are using Azure Devops Server. When a bug is created, I would like to create a child task automatically. The task does not need to have any particular properties, it just need to be created with default values and have a default name like "Placeholder" or something like that.
I have already encountered some different ways of doing it, but neither of them seems to be well suited for me:
The extension 1-click-child-links could be used to create a child task by clicking a button in the context menu after creating the bug. This will of course work, but it would be even better if it could be done in the background ensuring the task to be created even if the user forgets to click the button.
As I understand it, using the Microsoft Flow software tasks can be created in the background when creating a bug which would be exactly what I'm looking for, but it would be nice to find a simpler way of doing it without installing a complete software tool.
I've learned that it is possible to hook into different events by using service hooks (https://learn.microsoft.com/en-us/azure/devops/service-hooks/events?view=azure-devops). There are a couple of standard integrations, but neither of them can be used to solve my case. So using this method, I guess I need to develop a custom service creating the task?
Is there a simpler solution to achieve my gool or do I need to stick with one of the solutions above?
As a workaround , we can set Azure Logic App, select When a work item is created"as trigger, and then select Create a work item as action.
Make sure to set the Link URL to the “When a work item is created” URL and set the Link Type to Hierarchy-reverse to create the Task as a child of the Bug item. Please refer to the settings below:
Save the Logic Apps Designer, and then when the bug item is created, the child task named Placeholder will be automatically created.

Add a new state to a User Story in VSTS

I'm trying to add a new state to the user story Work Item type in VSTS. To do this I follow the instructions outlined here:
https://www.visualstudio.com/en-gb/docs/work/process/customize-process-workflow
However, when I get the states page the "+ New state" option is greyed out and I cannot click on it. I am a member of the "Project Collection Administrators".
Can anyone tell me how to enable the "+ New state" button?
So VSO has this Hierarchy like there are Processes which can be considered as your SDLC ( Agile, CMMI and Scrum). These are System defined processes and we cannot edit them. And Each Process can have many number of Work Items associated with it. System level process cannot be edited meaning you cannot create, edit, create state for a system process. The work around is to create a Inherited Process with the Available System Processes, which will also inherit the Work Items. This inherited process can be edited (you can create, edit, create state for the work items available in this inherited process). So keep in mind while inheriting from any process, for which work work item you want to add state and create a inherited process from that parent process.
Please follow this link to create a inherited process : https://www.visualstudio.com/en-us/docs/work/process/manage-process
Also keep in mind that whatever project you create has to be based on the inherited process so that the changes that you make in the customization is available at the Work Item form level.
Hope this helps.
Thanks,
Bhadhri

Trying to create an approval workflow that will update a list item with a varible from SharePoint desginer

This should be easy, but it looks like it isn't.
I should start by saying that while this is a 2013 workflow, I am doing a 2010 workflow instead, as it has things I need in it.
I set an initiation form parameter called Syndication. which is a simple Yes / No drop down list. As you know, as soon as the parameter is set, the workflow automatically creates a variable for that value.
So I created a field in my workflow tasks list also called Syndication, which is also a Yes / No choice field. Then I went into the workflow and set up an update item in this list, chose the workflow task list, choose the Syndication field, and then choose to update with the workflow variable Syndication.
Here it is:
image here
The issue is that when a user selects yes everything works fine, when a user selects no, however, the workflow simply gives am error occurred, and doesn't tell me what the error is.
Anything would be great.

Deploy workflow processes in intalio server

I'm done building processes and intended to deploy into intalio server. it already success deployed,but the form that I've been develops using ajax form did not append to the workflow processes. anyone knows how to make that form appear on workflow processes?
both several task such as init process and create or complete already done. I've been assign role in workflow too. i create three types of form. submit form, validate form, and processing form. and the role was student, department, and academic.
the submit form already shows in monitoring workflow. and when I assign module to the specific user, in this case student, it already works. however, the rest of form (validate form and processing form) does not appear both in monitoring workflow and after assign to department and academic it doesnt not appear.
I think the process actually almost the same like the intalio tutorial. rite now, I make the user only two, student and department to make sure that the submit form and validate form run smoothly. but still, the validate form doesnt appear.
thanks
If you go into Administration>Monitoring>Processes. Can you see any of the processes in the Failed state? It sounds like the process is either failing or not getting to the point where that form would be triggered.
You can click on the number in that column and it takes you to a list of failed instances, or click on the number in the in progress column to get to instances still running. Click on the text in the Process column to get at the actual error. You can also see a diagram of the instance, this sometimes help to figure out where exactly it failed (clicking on the little gears in top left on the diagram colors the tasks that have been executed to green)
Hope this helps.
Cheers.

is it possible to show contact number of current logged in user when artifact is created in tuleap

We are using the Tuleap 7.0 for Project management. We have a new requirement that we need to show the contact number of current logged in user when a artifact is submitted either in a separate field or in the same field (submitted by). Is it possible to show or what type of code change has to be done, to retrieve the current logged in user information when artifact is created. Kindly do needful.
That's not easy. There are two main steps: one surrounding the user; the other surrounding the artifact.
First you would need to edit PFUser.class.php to add the property to the user object. You would also probably need to create a forgeupgrade script (database upgrade) so that you could save and modify the property. Obviously the UI and scripts that manage the CRUD of a user would also need changing.
Next, you would need to create a new type of class that extends TrackerformElementField, make that type available for use in the Tracker Field administration and set its value to the user's contact number.
Unfortunately, any of these modifications, if not done carefully, can have important side-effects. If you want to write your code and have it reviewed by the community, you can go through gerrit.tuleap.net and read the developer guide