How to create State machine workflow?:
How to create State machine workflow
Hi,
According to your post, my understanding is that you want to send email to Assigned to person when item is created in Task List.
You can set E-Mail Notification to Yes under your Workflow Tasks list > Settings > Advanced Settings. By doing so user specified in AssignedTo will receive e-mail notification when task is created.
Here is a similar thread for your reference:
https://social.technet.microsoft.com/Forums/office/en-US/44f63c3c-8dfc-4f02-b627-a92249404ae3/task-list-advance-settings-email-notification-send-email-when-ownership-is-assigned-or?forum=sharepointgeneral
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Similar Messages
-
Guide or Information to Create State Machine workflow on SharePoint Designer 2013
Hi All,
I am currently working on a workflow that requires 5 approvers who can approve, reject or review and submit again.
In a situation where an approval is given, the flow goes to the next approver.
Where it is Review and Submit Again, the control is transferred to the originator who started the the workflow and the entire process restarts
When it is a reject, the workflow stops.
Kindly advice on how to get this working.
Best Regards,
Ifeatu
Ifeatu OsegboHi
Ifeatu ,
For achieving your demand, you can take steps as below:
Add a “Start a task process” action in your workflow.
Click “these users” and Start a Task Process edit page will pop up.
In the Participants field, input your 5 approvers based on the order of approval.
In the right of Participants field, select “Serial (one at a time)”.
In the Task Options section, select “Wait for specific response” for Completion Criteria.
For Required Outcome, select “Rejected”.
Go to workflow setting page, select “Start workflow automatically when an item is created” and “Start workflow automatically when an item is changed” for the Start Options
setting.
Best Regards,
Eric
Eric Tao
TechNet Community Support -
SharePoint 2013 State Machine Workflow Developped using Visual Studio 2013 Terminated
Hi all,
I developped a state machine workflow using Visual Studio 2013, and deplyed to SharePoint 2013, the workflow work fine for first task, and some times for second task.
after that the workflow become terminated with below error:
- System.Activities.Statements.WorkflowTerminatedException: The workflow instance exceeded the throttle of 10000 activities executed in a row and could not be unloaded because it was not persistable.
I spent many days to solve this issue but witout any result...
Please advice...Hi,
According to your description, there seems an endless loop in your workflow which makes the workflow exceed the throttle.
A suggestion is that you can create a new clean sample state machine workflow firstly, when it works without error, then adding other activities with custom logic
gradually.
By doing this, it would be easier to find out what might cause the error in this workflow.
A demo about Create State machine Workflow In SharePoint 2013 for your reference:
http://www.splessons.com/2013/12/create-state-machine-workflow-in-sharepoint-2013-using-visual-studio-2012/
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
How to REpublish Custom Task Forms (InfoPath) to SharePoint 2010 State Machine Workflows
I am new to SharePoint. Sorry if answer to my question is obvious.
I've create Custom Task Form in InfoPath and publish it (File/Publish/Network Location [Form Template Path and filename='MYPROJECT/Forms/ApprovalForm.xsn'; Form template name='ApprovalForm'], in the next window I've cleared Public URL according to the articlehttp://www.codeproject.com/Articles/195348/SharePoint-2010-State-Machine-Workflows-with-Custo).
After it I've added module Forms, and added ApprovalForm.xsn from the existing items.
My xml files: Elements.xml
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Workflow
Name="Order New Server"
Description="My SharePoint Workflow"
Id="482cbc86-b717-4981-a49a-3cf4c89e9399"
CodeBesideClass="Myproj.OrderNewServer.OrderNewServer"
CodeBesideAssembly="$assemblyname$"
TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160">
<Categories/>
<AssociationData><Data></Data></AssociationData>
<MetaData>
<AssociationCategories>List</AssociationCategories>
<Task2_FormURN>urn:schemas-microsoft-com:office:infopath:ApprovalForm:-myXSD-2012-03-09T14-11-55</Task2_FormURN>
<StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>
</MetaData>
</Workflow>
</Elements>
Feature.Template.xml:
<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/" ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" Receiverlass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver">
<Properties>
<Property Key="GloballyAvailable" Value="true" />
<Property Key="RegisterForms" Value="Forms\*.xsn"/>
</Properties>
</Feature>
My form work fine, but when I make changes and republish it, it doesn't update (I see old form). What I tryed:
IISReset
Clear all cookies and cache in IE
Retract solution, restart VS2010, reboot computer.
Change assembly number, guid.
I have no ideas, what can I try for republish my form with changes.
Thank you in advance for any suggestions.
PS: sorry for my writing. English is not my native language.
PPS: when I save new Form to new location and add it to the project, it works.I've found how can I republish changes. But it seems more like crutch than solution, but it works:
After republishing InfoPath form, I delete file from project (DEL on ApprovalForm.xsn in Solution explorer) and after it add it again. (Add/Existing Item). And then redeploy! Hurray!
Is there any way to redeploy a Task Form directly on the server without importing it in Visual Studio again? I am using some data connections in my task form which are different for different environments (staging, dev. etc.). Seems like I've to create a separate
Workflow WSP file for each envrionment. Any comments? -
Create Multiple tasks for Single Item in List using state machine workflow in sharepoint
Hi,
I want to create multiple create tasks for Single Item in List based on Assigned to column using state machine Workflow through visual studio
Here Assigned to column allows multiple users. so i have to create task for every user based on column .
I'm trying for this but i didn't got any solution
Please provide solution for this.Hi,
According to your post, my understanding is that you wanted to allow multiple users to approve.
There are some articles about creating parallel tasks in state machine workflow, you can have a look at them.
http://www.codeproject.com/Articles/477849/Create-Parallel-Task-in-State-Machine-Workflow-in
http://msdn.microsoft.com/en-us/library/office/hh128697(v=office.14).aspx
http://social.technet.microsoft.com/Forums/office/en-US/b16ee858-4360-479a-a686-4ee35b7be9db/sharepoint-2010-workflow-creating-multiple-tasks?forum=sharepointdevelopmentprevious
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
How to update task status from custom task in state machine workflow
i m using custom task for state machine workflow
i am using
if(this.onTaskChangedSupervisorAction_AfterProperties.ExtendedProperties["Workflowstatus"].ToString().Contains("Approved"))
if above is true moving forward its working fine but i want to update the status field of task as i can update the title and due date for the task but how can i change the status once approved it
should show the status as approved it's only showing in progress
this.CreateTaskSupervisorAction_TaskProperties.Title="supervisor task"
MCTS,ITILIf your task shows In Progress state then I think you need to look at your workflow and make sure you are using Complete Task activity and if you are already using Complete Task Activity then verify the Correlation ID. Ideally you are not required to set
this value in workflow. You simply use the Complete Task Activity.
If you are running into issue where your workflow is staying in In Progress state even after the task is complete then you can look at the following blog post.
How to programmatically complete Approval workflow task
Amit -
How to debug Sequential workflow and state machine workflow?
Hi All,
How to debug Sequential workflow and state machine workflow?
Thanks in Advance!check this
http://msdn.microsoft.com/en-IN/library/bb386166(v=vs.90).aspx
http://msdn.microsoft.com/en-us/library/vstudio/ee231573(v=vs.100).aspx -
i have developed the State machine workflow in which i am using default workflow task
i have added one status dropdown and that is having approve or reject that i set using workflow task drop down values
now my requirement is that when my workflow goes to different approval i need to have different status values in dropdown
for example
on manager approval state activity i need to add additional status value forward to legal
but when it moved to next activity this task status field should show only approve and reject
in summary i need to have different status values for workflow task when it moved to different state activity(approval levels)
can we set these status field of task for state machine workflow programtically as well like for different approval level of task i need different status to be set for the dropdown of task status field
MCTS,ITILHi Shahid Siddique,
I have seen a similar thread from you about this issue, create custom form for the seperate form is a considerable workaround, you can have a check whether it works.
http://social.technet.microsoft.com/Forums/en-US/9baa0c32-1cde-4c58-aa7c-3568ccf0cdc9/different-approval-level-of-task-i-need-different-status-to-be-set-for-the-dropdown-of-task-status?forum=sharepointdevelopmentprevious
Thanks,
Qiao Wei
TechNet Community Support -
How to Create material master workflow
Hi All,
Can anybody tell me how to create material master workflow?
i need to customize the workitem for creating data in different views in MM01 transaction with restriction to particular user.
Regards,
PritiHi,
This link is to display a material.My requirement is to create a workflow which will allow a responsible person to enter data for specific department data e.g Purchase,Accounting etc.Initially anyone can create data using basic data1 and basic data2 views.After this my workflow will be triggered and it will go to next person who is responsible to enter Purchase data and then Accounting data.
Plz help me to create different views with respect to person.
Thanks in advance. -
How to implement state machine architecture
Earlier in this forum, i had taken help in improving the subparts of my main vi, now i had developed a main vi,it is working correctly without any error, but i had used sequence architecture in that and as everyone says we should use state machine instead of sequence architecture, i am posting my vi please help how to implement state machine architecture in this, and actually in my vi, i am having 5 tabs( presently i have developed only 2 tabs) 1. patient info, 2.naadi acquisition, 3.nostril temp., 4.vision acquisition, 5.other info. presently with tab control i am using case structure so that only only particular page runs at particular time, i want to know how can i improve this code to work more efficiently.
Attachments:
intelligent diagnostic bench.lvproj 68 KBi am sorry, i thought that vi's are by default attched with project files,i am attaching the main vi and all other associated subvi's also.
Attachments:
Final Diagnostic Project.vi 375 KB
createfolder(SubVI).vi 65 KB
checkstring(SubVI).vi 11 KB -
Using SPUtility.SendEmail inside a state machine workflow not working
I have a State Machine Workflow. I have developed in visual studio 2010 for a SharePoint 2010 site. I want to send emails to couple of people inside an activity and my code will decide the email receiver. When I assign the task from my code to some one the
State Machine workflow is sending mail to the task assignee and assigning the task to that person. But if I want to send mail to some additional person from the workflow, it is not allowing me to send that. The code I am using for the same is, SPUtility.SendEmail(SPContext.Current.Web,
headers, mailBody);
Can any one please let me know, why it is not sending mail with this code, or what can be the solution for the same.
ThanksHi Monali,
Thanks for your sharing.
Best regards,
Patrick
Patrick Liang
TechNet Community Support -
How to Create Step By Step Sequential And State Machine Workflows?
Hi All,
I am very new to workflows, can any one help me to how to create workflows step by step using visual studio.
Can any one explain with example.Hello,
Here is the MSDN article for your ref:
Sequential WF:
http://msdn.microsoft.com/en-us/library/office/gg265727%28v=office.14%29.aspx
State Machine WF:
http://msdn.microsoft.com/en-us/library/office/gg508985%28v=office.14%29.aspx
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
How to create state diagram (for state machine)
Hallo all.
In my previous visit here, i saw picture of state diagram (bubbles with connection),
How to create that in labview (if there is such option) ?
or, which other software create state diagram.
thanksThere is the State Diagram Toolkit (additional tool from NI for LabVIEW) with good interface and unreadable code
It gives you a State Diagram Editor at Functions palette.
It is very good tool for state diagram visualization, but readability of the code is controversial.
When you will get a clear picture of a diagram from State Diagram Editor, I suggest use classic state diagram pattern: case structure driven by typedef enum in while loop.
Regards
Mikrobi (Zbigniew St. Sobków)____________________________________________________________
"You can lead a horse to water, but if you can get him to float on his back you've got something." -
State Machine workflow if else branch
I have a scenario that have 4 level of approvals on every approval if it is accepted it is coming to the requestor who submitted it i need to make a condition that
Approval level1=Supervisor
Approval level2=Dept Manager
Approval level3=VP
Approval Level4=HR committee
request is submitted by reguester a user
if requester reject the approval level 1 it should move to the target state 2 (Approval level2)
if requester reject the approval level 2 it should move to the target state 3(Approval level3)
if requester reject the approval level 3 it should move to the target state 4(Approval Level4)
i have a state for requestor where once the requester reject i have to move it to one target state
how can i acheeive above bold requirements?
MCTS,ITILThis is easy to do if you are using Visual Studio to create your workflow. Simply define each Approval level as a different state and evaluate what the target state should be at the end of each state.
But if you want to do this using SharePoint Designer then you should know that SPD only does sequential workflows, not state machine. To do this kind of workflow in SPD most people break it into 5 workflows. One main workflow and 4 separate workflows
for each stage. Then at the end of each workflow decide which other workflow to start.
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
How to do state machine using events .
Hi all.
i like to create a state machine using events methos .
i have 4 functions 1,2,3,4. (event based functios) (seperate sub vis)
1.i will trigger the 1 function.
then end of the first function should trigger the next function.
like state machine .
how to create this method in labview .. i tried value signaling its still not working . what i want.
Solved!
Go to Solution.JGar wrote:
Wouldn't it make sense to have the entire state machine within one event case? When you trigger the event case the state machine then executes like a normal state machine.
DO NOT DO THAT!!!!!! Long parts of code do NOT belong inside of an event case.
The Event Structure should be in its own state and the state machine should to to that state every once in awhile to check for user events.
Alternatively, you could put just the state case structure inside of the Timeout event case. Something like this: http://www.notatamelion.com/2015/03/02/building-a-proper-labview-state-machine-design-pattern-pt-2/
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Maybe you are looking for
-
IPod not found by computer or iTunes
about a month ago my iPod nano (3rd gen) just stoppoed working out of know where, and then all of sudden it came back on about two weeks later. Ever since then it has not showed up in iTunes or as a device on my computer.
-
HT2801 Can I use a USB external DVD drive for mac pc for a ibook g4 to install tiger
Wondering if I can use a externl disc drive for mac pc for ibook g4
-
ABAP and JAVA stack together?
Hello Friends, I wanted to install the ABAP stack SP12 with JAVA stack SP09. I am downloading the last file of the stacks. Is it possible to install them together on one OS(I have W2K Enterprise Edition)? Can you guys please help me out here ? Best R
-
Firefox with avira run in background having some periodic lagging issue
Firefox 5 with avira run in background is lagging like 5 ~ 10 minute period. this was after avira installed a new feature called WebGuard, is it had something to do with the lagging? or just my hardware failure? i being monitor the task manager, but
-
How to listen to .mp3 songs in Solaris 10 -x86 ??
Hello friends, I have installed Solaris-10 on my PC ( ie Solaris 10 for x86). I would like to play .mp3 files (songs). I checked that mpg123 is installed. At the same time, I could not find the files /dev/audio and /dev/audioctl. Browsing the net fet