Complete workflow tasks before starting another workflow.

Hello everyone
I have a requirement in my project and i am not sure how to do that task in best possible way.
I have a reviewer workflow where i will be creating approval tasks for 'n' number of reviewers (the reviewers we get it from initiation form).
For example
I have 4 reviewers and there will be 4 approval tasks (1 for each) that will be created and if I have a reply percentage (the people who reviewed
the tasks assigned to them) set to say 50%. 
Then if at least 2 reviewers are sending reply for the tasks assigned to them then
we can start another workflow manually and when that new workflow is starting we should complete all the tasks that are in progress for the review workflow
If there are only 1 reviewer or no one is sending reply then we should not allow
the new workflow to start and if anyone try to execute the workflow manually we should say “Minimum number of reviewers had not replied to the tasks assigned to them so we cannot start the workflow now. Retry later”.
How to achieve this requirement? I already developed the 2 workflows that I discussed here and it is working correctly. I simply need to create this dependency condition
between the 2 workflows as I discussed here. Please suggest me the proper way for achieving my requirement.
Thanks
K.Anantha rengan

Hi K, the only way I can see this working is if you make the second workflow automatic, and have it start when the number of approvals reaches a certain number. This number would have to be in another column (possibly a calculated column).
cameron rautmann

Similar Messages

  • Workflow 2013 start another workflow 2013

    In an existing workflow 2013, I need to lower the permission levels of a user so that they can not modify a custom listed after it as been submitted. Thus I am thinking of having he first workflow 2013 start another workflow 2013 before the permission level
    of the custom list item is lower.
    Thus can you tell me how to do the following:
    1. Have a workflow 2013 start another workflow 2013.
    2. After the first workflow 2013 is started, have the first workflow not expect the 2nd workflow to run any results. The first workflow will basically end right after it lower the permission levels of the user that submitted the custom list to workflow 2013.

    See these links
    How
    to trigger a SharePoint 2010 workflow from a SharePoint 2013 workflow
    Sharepoint
    2013 workflow to automatically trigger another workflow to start
    call one workflow from another workflow
    Useful Sharepoint Designer Custom Workflow Activities
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • Get ListItemID from which workflow task was started

    In SharePoint 2013 in event receiver (item added) I need to get List item id from which was task started...I have custom list when I add new list item the workflow starts and create new task in task list...After new item is created in task list I need
    to get ID(List item id of item which start the workflow) in event receiver of Task list... Hmm...In sharepoint 2010 this work
    SPListItem currentTask = properties.ListItem;
    Guid sourceListID = new Guid(currentTask["WorkflowListId"].ToString());
    SPList sourceList = properties.Web.Lists.GetList(sourceListID, true);
    int sourceListItemID = Convert.ToInt32(currentTask["WorkflowItemId"]);
    SPListItem sourceListItem = sourceList.GetItemById(sourceListItemID);
    but in sharepoint 2013 not...Thank you

    hi
    try this
    SPListItem currentListItem = properties.ListItem;
     if(currentListItem != null)
      object associatedWfListId = currentListItem["ows_WorkflowListId"];
      object associatedWfItemId = currentListItem["ows_WorkflowItemId"];
      if (associatedWfItemId != null && associatedWfListId != null)
        SPListItem item = web.Lists.GetList(new Guid(associatedWfListId.ToString()), false).GetItemById(int.Parse(associatedWfItemId.ToString()));
        // THE ABOVE ITEM IS THE ASSOCIATED LIST ITEM
    https://blogs.blackmarble.co.uk/blogs/jmann/post/2008/03/10/get-the-item-a-workflow-task-is-associated-with.aspx
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • Problem with custom sharepoint designer approval workflow - check box: 'Start this workflow to approve publishing a major version of an item' is greyed out

    I wanted to create a simple approval workflow. Hence I opted to start from scratch rather than copy the OOTB approval WF. Using SharePoint Designer (not Visual studio) I created a reusable workflow and have added the built in 'Start approval process' action.
    It's saved and published globally.
    Everything works fine except that when associating the WF with a list the 'Start this workflow to approve publishing a major version of an item' check box is disabled.
    Major and minor versioning is enabled for the library.
    What am I missing here? Or do I have to start from the OOTB approval WF to get this to work?
    Regards
    Henning

    Again - new ideas pop up right after defining the issue as a problem. :-) Problem solved!
    I solved this by creating a new workflow from the original publishing approval workflow (copy and replace), but instead of tweaking the already defined approval process (WF action) I deleted it, then deleted all initiation form and local variables,
    and then added the 'Start approval process' action again. This re-installs all the necessary local variables without any initiation form involvement, which is just what I want.
    From here I can tweak the workflow to make it more user friendly, much like
    described by Bobby Chiang in his great blog.
    Remember to add action Set Workflow Variable 'EnableContentApproval' to Yes right before the Start Approval Process action, else the document's status won't be set to 'Approved' or 'Rejected' as an output of the workflow.
    Learning every day!
    Henning

  • Code to wait until one event is finished before starting another?

    Hi all,
    Coding isn't my strong point but I have a basic understanding of how functions etc work.
    I've been learning about referencing symbol timelines with the awesome tutorial from the Adobe Blog, included below.
    http://blogs.adobe.com/edge/2012/07/18/tutorial-leveraging-independent-symbol-timelines/
    I've been able to get my symbol to play from a certain part of it's timeline depending on whether the mouse is rolling in or out but now I'm a little bit stuck.
    The mouseover event triggers an animation and the mouseout triggers another animation that starts from the same frame that the mouseover animation ends with.
    The problem is this. If I move the mouse quickly over the buttons, the first animation will play halfway through and when the mouseout triggers the second animation, the first animation will seemingly "skip" to the ending and move straight to the first frame of the second animation.
    I know enough to code it so that the second animation will check if the first animation is still playing before starting by using an else/if statement. Using this method I only know how to skip the second animation if the first is playing but that isn't really what I'm looking to do.
    Here comes the question; can anyone explain to me how to create a wait loop in Edge Animate?
    When I say wait loop, I am talking about code that will check a variable and perform an action if the variable is true OR loop back to the start of the function if the variable is false (to check the variable again).
    The behavior I am trying to achieve is somewhat like queuing the second animation so that it will "wait" until the first animation is played before beginning the second animation.
    Any ideas?

    Ok Mr Doon,
    Clearly, I read to quickly
    The behavior I am trying to achieve is somewhat like queuing the second animation so that it will "wait" until the first animation is played before beginning the second animation.
    So, say the anima symbol is a 2s animation and has autoPlay set to false. There are two instances anima-1 and anima-2 on stage.
    The event handler anima-1.mouseover starts the first animation :
    We select Stage in the code panel and place before the first Symbol.bind… the declaration for two symbol (stage) variables :
    Inside the anima timeline, click the top left bullet+curly brackets icon and select complete : when the animation is complete, we set the boolean variable (what is not very clean here is that this is done for the two instances anima-1 and anima-2) :
    The event handler anima-2.mouseover starts the wait loop, by calling a function defined at the stage level :
    More precisely, the function is defined in the document.compositionready handler. It defines (and stores in variable waitLoop in order to be able to remove when finished) an interval, that is the repeated call, every 10 ms, of an inner anonymous function.
    The latter simply tests the boolean and when its true
    - starts the second animation ;
    - clears the interval.
    You can download the example here : https://www.box.com/s/6yxjfmrqd0b5zbhmd3lx
    You can hover over the left rounded rectangle, and immediately after over the second one. Subsequent rollovers are not handled, but it gives you a possible logic to adapt to your particuliar problem (that I still do not understand completely : it's hard without seeing).
    Gil

  • Something went wrong. To try again, reload the page and then start the workflow, error on starting a workflow

    i have already create a custom workflow with sharepoint designer and checked for error and it seem fine. i published it on my document library so apprear the first issue : the column that contain the name of my workflow apprear and the link to start my workflow(contain
    the name of my first stap) doesn't appear. the second problem is that when i tried to start the workflow manually on a specific document i get an alert : Something went wrong. To try again, reload the
    page and then start the workflow
    i tried : -restart service bus message broker -restart service bus gateway -recycle workflowMgntpool -flushed the dsn resolver cache and the problem still occure
    on uls log viewer it seems to be an error on w3wp.exe process
    the workflow history is empty

    Hi Mokhtar,
    For your first issue, when you publish a workflow to your document library, only after you start the workflow, then the link to go on the workflow(contain the name of the workflow stage) will appear.
    For your second issue, my understanding is that you got an error when you manually start a SharePoint Designer 2013 Workflow.
    Please go to Administrative Tools->Services, make sure the following services are started.
    Workflow Manager Backend
    Service Bus Message Broker
    Service Bus Gateway
    Windows Fabric Host Service
    Here are similar posts for you as a reference:
    https://social.msdn.microsoft.com/Forums/office/en-US/12f8ae26-6889-4227-a3fc-dd29a38230a6/something-went-wrong-to-try-again-reload-the-page-and-then-start-the-workflow?forum=sharepointcustomization
    http://community.office365.com/en-us/f/154/t/277480.aspx
    If the issue still exists, please check Event Viewer to check more information about this issue.
    http://msdn.microsoft.com/en-us/library/jj193526(v=azure.10).aspx
    I hope this helps.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Recommended configuration tasks before starting to use the system

    Hello,
    I am a real Mac Newbie, just got my first Macbook Pro ...
    On Windows-systems, there were several config-tasks that should be done at first done before doing anything with the system (data migration) ... like creating partitions ... generally speaking, tasks that cannot/shouldn't be done later.
    Are there any similar tasks, that should be done in the very beginning (besides software updates)?
    I also did a search in this discussion forum, but couldn't find anything. If I missed it, please let me now the link.
    Thanks in advance

    Like Roger says there aren't really any software-related "configuration tasks" that have to be done with a Mac, at all. Just use it, close it when you're done, and open it again when you want to use it again. Things are simpler on a Mac. I admit that it might take a little while to get yourself used to the idea, but you'll find its much better once you do.
    One thing I'd like to add is that it can be a good idea to calibrate the battery on your MBP just after you get it. This works in the battery a little and makes sure that you'll get the most accurate readings from the battery life menu.
    I can't really think of any tasks that have to be done when first getting a computer that can't be done later... Just enjoy the machine! And if you have any other questions, don't hesitate!
    --Travis

  • Completion of one workflow is triggering another workflow

    Hi Experts,
    I am facing a wierd issue. I have created a workflow to approve/reject a contract. In the start condition I have maitained a container attribute to check is the agent is not WF-BATCH AND activity type = 00001under conditions  there is only one event that is triggerred in all scenarios.
    Also to remove the workitem for the approvers inbox when the contract is settled/reversed directly from the transaction i have used an event step and a process control step within a loop.
    Everything is working fine in development system, but im facing a weird issue in QA.
    Once the workitem is approved the workflow is completed, but it is starting another workflow for the same contract number and when i check the containers that i hv used under conditions, those do not match.
    i.e the agent is WF-BATCH and activity type = 00000 . Then how come the workflow is started again ?
    Can any1 help.
    BR,
    Aaarvi.

    Hi Swami,
    Thank you for the quick response.
    I just found that, in my development system in event linkages a check fucntion module SWB_2_CHECK_FB_START_COND_EVAL is used, whereas the same is not used in QA.
    Can this be causing the issue by any chance?
    Aarvi.

  • How to set a custom column in a workflow task.

    Hello,
    I'm looking for some assistance a bit with how to set a custom column in a Workflow Task.
    I have a List Workflow that starts when an item is created in a list. The workflow, platform type SharePoint 2013, starts a new task, Task1, with Content Type 1. This Content Type has a custom column called Age. Once the Task1 is completed a new task, Task2,
    with Content Type 2, starts and has the same column Age, as Task1.
    How can I populate the Age column in Task2 with the content of the Age column in Task1?
    Since I start the task by running "Assign a task to ..." Action I was thinking to copy the Age column from the Task1 to the list item that started Task1, which has a column Age as well, and then in Task2 to start another workflow - which is associated
    with the Content Type 2,  that would try to read the Age column from the list item that started Task2, which was set once Task1 was competed - I know it's complex but this is how I was thinking. 
    The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
    Is there a better approach? I use SharePoint Designer 2013 to design all this.
    Any assistance is appreciated.
    Thank you.

    Hello Sebastian,
    you can get the Age column from Task 1 and then update the Task 2 Age column with that value. I am not sure why you want to run another workflow on Task 2.
    You can perform below steps to set Age column from Task 1 to Task 2.
    1.  Create Task 1 using Assign a task , wait till the task is completed.
    2. Get the Age column value based on Task 1 once the task is completed.
    3.Create Task 2 using Assign a task ,  uncheck wait till the task is completed option.
    4. Update the Task 2 with Age column in Task1.
    5. Use Wait for the field to equal value , check for Task Status is completed or not.
    >>The problem with this approach is that I can't get a reference to the list item that started Task2 to read the Age from the list item.
    you can get the related item from task list item to get the main list item.
    Other option is, Use Javascript and CSOM  in task edit form to get the Age column from Task1 and prepoluate the Age value when Task2 is opened.
    Hope this helps.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Role Assignment to Workflow Tasks

    Hi Experts,
    Any hints on below requirement please :
    Details:
    1. For a role in transaction PFCG, I don't see the Workflow tab
    2. For the same role in transaction SUIM, I can see the Workflow tab and the tasks assigned.
    3. Now, I have a list of workflow tasks and I need to assign Role X, Role Y to all of them
    What is the correct and best way out to do this
    - Role-Task Assignment ::: Is it enough if I add all the workflow tasks in SUIM transaction(workflow tab) for both roles X,Y
    or
    - Task-Role Assignment ::: Can I assign both Roles X,Y in pftc transaction for each of the workflow tasks
    or
    - Both need to be done
    Thanks in advance ...
    ~Ali~

    Hi Ali,
    Answers for your questions:
    1. Transfer Missing Elements: YES
         With this step, new elements will create in the task container based on the method container elements and creates the binding b/w them. It is better to choose YES and after that, if you dont require the binding, you can delete it for respective elements.
    2. YES, we need to follow the same procedure.
    3. Basically production system is having the mandatory configurations like RFC destinations and Classify tasks are general, probably no other activities are required.
    4. For this, I am also waiting for other folks reply.
    Regards,
    Murali Krishna.

  • Sharepoint Designer - Two step List Workflow task item is not changing the status from not started to Complete

    Hi 
    Using SPD i am creating list workflow.
    Scenario: Employee submits a request . Task assign to manager. Manager can either approve/ reject. If approve then change the state column to "done". If rejected the state column to "Rejected".
    Problem is "Assign a to do item" is assigning the task to manager. But after manager approves the status in the task list not changed to "Completed". Still it is showing "Not started". I dont want to manually complete the task.
    Please help me for automatic process. 
    What i should do to change the status to "Complete" automatically after manager approval
    Regards
    Jhanani
    Janani.R

    Hi Janani,
    From your description, you would like to create an approval workflow for a list. When an employee submit a request to the list, an approval task should be assigned to manager, then manager could approve or reject the request. From the request list,
    we should be able to see the Approval task’s status.
    Not understand the reason of designing the workflow to two steps, an approval action should be enough from my understanding. For producing, I create a list named Request list, then customize it in InfoPath form to add a Request field for stating request
    content. Then add a workflow to list named Approval task, add the action of Start an approval process with administrator and make the workflow automatically start when item is added.
    The image below shows the status of Adding items, Approving and Rejecting. Please check if it could meet your requirement.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • A workflow creates an item but doesn't start another list workflow on that new vreated item

    Scenario is as follows: I have a Workflow A (starts manually) and a Worklow B (starts when item is created). First I create an item in the list after that I start worklow A manually on that item and of course workflow B is already running on that item. Workflow
    A creates a new item in the same list. Unfortunately workflow B doesn't start on the newly created item.
    What I've found out so far is, the problem is connected to the actions you use in workflow B. If I'm not using actions like 'Update List Item' or 'Set Field In Current Item' the worklflow starts.
    Any suggestions?
    best
    Matthias

    Hi Matthias,
    According to your post, my understanding is that you wanted to start the Workflow B to perform some actions like ”Update List item” or “Set Field in Current Item” on the newly created item which is created
    by Workflow A in the same list.
    The reason of the problem which you have found is that the automatically started Workflow B executed faster than the manually started Workflow A.
    Therefore, the Workflow B can’t be triggered automatically because the action
    “Update List Item” or
    “Set Field in Current Item”
    cannot be executed when the new item hasn’t been created completely.
    So, I recommend that you can add the “Pause for Duration” action to pause for
    one minute before the actions of “Update List Item” and “Set Field in Current Item” in the Workflow B.
    The Workflow B is shown as below:
    Best Regards,
    Victoria
    Victoria Xia
    TechNet Community Support

  • Workflow Task not able to be completed due to "System Account" in Requested By field not resolving.

    I have a workflow firing on create and update in a list. The list is a calendar that is email enabled. The tasks are assigned with the requested by set to be the System Account, which shows underlined in red when trying to complete the workflow task. This
    is a sharepoint designer 2010 workflow using the assing approval task action. I was hoping to see a variable used when assigning the task to allow changing that from the system account to the created by on the original list, which I am able to assign for the
    approval workflow starting notification since that also was trying to go to the system account.
    Here is the task as it looks which will not allow completion even by site collection administrator.
    If the workflow starts with direct entry in the list, all works fine. This is related to the system account creating the initial item, but was hoping to override that during the task process.
    Anyone else run into this and have solution?

    Hi Alan,
    I can’t reproduce your issue, but you can change the requested by on the task form to “created by” column. Go to SharePoint
    designer, open the workflow, under forms section, click task type form workname.xsn to open it in InfoPath form, then you can change the requested by to created by.
    For more information, see
    http://blogs.msdn.com/b/edhild/archive/2011/06/01/creating-custom-workflow-task-approval-forms-with-sharepoint-designer-2010.aspx
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • Workflow Tasks spontaenously changed their start date without user input.

    The issue I have is that a task list with a workflow attached to it spontaneously added major versions to over 200 items that changed the 'start' and 'end' dates. The user's name who was tagged as the one doing the update was not using sharepoint or even
    at his computer for the time that this occurred.
    Not all of the tasks in this list were affected and I can't find a pattern as to why -
    I have seen this happen before at a different agency/installation where a user's name appeared suddenly on fresh updates a year and a half after he retired and was removed from the system.
    Any ideas as to what might have happened?
    Any suggestions on how to revert over 200+ task items to their previous version programmatically without having to edit each individual one? 

    Hi,
    As I understand, you want to know why the task will change the start date spontaneously and how to revert your 200+ task list items version.
    How do you remove the user from the SharePoint 2013? And what permissions did the users have before you removed them?
    Check if there is a rule that will change the start date spontaneously in the workflow attached with your task list, or if there is customer code or solution that will change the start date spontaneously.
    If you want to revert the version of your task list items, you can achieve it by PowerShell script.
    The article below is about how to restore versions by PowerShell script.
    https://gallery.technet.microsoft.com/office/Restore-and-clean-up-f3c712fd
    Best regards
    Sara Fan
    TechNet Community Support

  • Workflow Task Not Completing

    I have an odd one. I have a workflow that we have been using for over a year, (has run over a 1000 times) and have not encountered this issue with it previously. I have 1 particular running instance of the workflow that has a Task that will not
    'complete'.  Other tasks are updating/completing with other instances of the workflow.
    With this particular task, if you Approve or Reject it, the Task record gets updated (Modified date changes), but the Outcome remains blank and the Status remains 'In Progress'. 
    I haven't tried to 'Terminate' the workflow yet as we would like to retain the workflow history.
    Anyone else encounter anything like this before?  Suggestions?

    Hi,
    Based on your description, my understanding is that the workflow task sticks in In Progress status.
    To solve this issue, I recommend to enable the workflow tracing log in SharePoint and check the ULS log for detailed error message.
    http://blogs.technet.com/b/victorbutuza/archive/2009/02/26/how-to-enable-workflow-tracing-debug.aspx
    Here is a similar issue for your reference:
    http://support.microsoft.com/kb/2843542
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • Mediator - convert XSD datetime to SQL date value

    Fusion 11g, JDev 11.1.1, W server 2008 Hi there, using JDev we've defined a DB adapter (towards an ORACLE schema), which basically serves two operations: INSERT and SELECT. On the DB table we've got a DATE_TIME while on on the other side we've define

  • Xbox Live Lag - 2.0

    Hi, I have serious lag in every single game that i play online. I have ran speed tests regular and my upload is 0.7meg and my download is 6meg with my ping being around 40ms. I do understand that it isn't the fastest upload but it is enough for Xbox

  • Question: What harm is done when I reinstall Oracle VM Manager?

    My company is getting serious about using Oracle VM for Real Production, and I'm trying to thoroughly understand what's going on, so I'm ready when things Go Wrong. I just had an incident, documented elsewhere on this forum, where my 2-node cluster g

  • E61 - Web already in use

    Hi, I'm using a SIM-free Nokia E61 with the first firmware (v. 1.0610.04.04 / 19-04-06 / RM-89) and since yesterday I haven't been able to use Web anymore. Whenever i try to launch Web, i get a "Web: already in use" error message and Web doesn't laun

  • Unable to update social 1.2(163)

    Hi I m using the latest updated N8 and ovi suite and last time this happened I was able to update social via computer update.. but now social is unable to update via suite or phone.. Please help Mihir