.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
MarieAdela
Imran Ghani
Post New Web Links

Creating Multiple tasks in perticular state in State Machine Workflow

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#
 

Hi Everyone,

I'm very new to workflow so forgive me if I'm asking stupid question.

Here is my scenario :-

Once the data got submitted to a list I have create task for different states(Like HRState, ITDepartment State etc etc) and each pf the state will have more than one task with different data(in terms of title,assigned to etc). That being said my question will be how I will accomplish these I read about replicator on many bolg but I'm not sure if I can provide different data for each task or not. Also I need to keep track if someone reject the task and come back to lets say HRState than based on that data I have to go to perticular task.

Please advise me to accomplish the task.

I'm working with Sharepoint 2010 and Visual Studio 2010.

Thanks in advance.




View Complete Post


More Related Resource Links

Creating Multiple tasks in perticular state in State Machine Workflow.

  

Hi Everyone,

I'm very new to workflow so forgive me if I'm asking stupid question.

Here is my scenario :-

Once the data got submitted to a list I have create task for different states(Like HRState, ITDepartment State etc etc) and each pf the state will have more than one task with different data(in terms of title,assigned to etc). That being said my question will be how I will accomplish these I read about replicator on many bolg but I'm not sure if I can provide different data for each task or not. Also I need to keep track if someone reject the task and come back to lets say HRState than based on that data I have to go to perticular task.

Please advise me to accomplish the task.

I'm working with Sharepoint 2010 and Visual Studio 2010.

Thanks in advance.


State Machine - Create AND wait for multiple tasks

  

After spending quite some time on this and researching every link I could find, I still am unable to make this work. I'd think this would be an every day case that many people encounter. Document approval with multiple reviewers.

But all the workflow examples I can find have one of two things in common. Either they are sequential and don't allow the workflow to revert to an earlier 'state/step' OR they are state machine but then only track one task at any point in time.

I need it to be a state machine since the workflow could go in circles between different groups of reviewers until they all agree. I need to be able in any given state, assign tasks to MULTIPLE users to review that document, and then also WAIT till ALL the users in that state have finished reviewing that document. Only then can it go to the next state and a different SET of reviewers. From there it might go back to the initial reviewers if they're not happy or it might move on to the next state.

I had tried using a replicator in the submit state to create multiple tasks for all the users (my replicator fired multiple times but only one task would get created). But then when I tried to create the second state to wait on all the tasks that were created, that was a whole other set of issues. I was also starting to go down the road of a statemachine triggering a bunch of sequentials but

Create Content Type in State Machine Workflow

  
Hi, I created a state machine workflow in share point 2007 with default associated task list. This is working fine. Now I want to add a custom content type to task in which I want to show 3 fields on task form : Title, Description, status And also I want to set some default values in these fields. How can I create and add this custom content type in state machine workflow ? G. Goyal

state machine workflow project creation error

  
Hi,   I have a dev environment which i had sharepoint 2007 and now i upgraded it to sharepoint 2010. Now when i try to create a state machine workflow project it gives me an error Object Reference not set to an object. I uninstalled Sharepoint extensions 1.3 (as i 64bit win2008 vm) and when i am trying to install it. In one of the installation screens where it asks for the port no  and the select the app pool it only shows the sharepoint central v3 app pool . i was expecting to have sharepoint 2010 product app pool in the drop down. I know that there should be a app pool on port 80. Since i upgraded sharepoint to 2010. I want sharepoint visual studio extensions 1.3 to point to sharepoint 80 app pool . Please can you tell me how i can do it.    

How to create custom task form in state machine workflow?

  
Hi, I want to create custom task form in state machine workflow. How can I create & install?  G. Goyal

can't debug anymore a state machine workFlow in Visual Studio

  
Hi, I have an issue with debuging a workFlow with visual studio when it should start the workFlow when I create an item nothing happen and sharepoint stay stuck : I can't refresh any lists, visual studio rich 40% of the CPU, no exception on log. At the same time if i deploy without debugging it works. Please help me. Thanks, Patrice  

workflow 4 state machine load

  
Hi, I'm using StateMachine for WF4 from codeplex. I can save it to file very well, but when I load it again I see only the states not the connectors also. Same behavior can be reproduced by double clicking a state and then coming back to whole state machine. Could you please help me? Thank you very much

Delay Activity is not working with SharePoint state machine workflow

  
Hello,   I have a problem with Delay Activity in Sharepoint state machine workflow. This issue is kind of common to many people but so far I haven't come accross any working solution. In one of the workflow states, I want to add a delay activity to send email notification if no action is taken after certain time. Below is what I have done:   In the targeted state: 1) add one eventDriven activity to handle the normal process (approve the item) 2) add another eventDriven activity to send the reminder email. In this eventDriven activity, I first add a delayActivity, set it to 2 minutes for test purpose. Then I add a Sharepoint SentEmail activity.   With my test, the Dealy Activity is never invoked after timeout period. What should I do to make the delay activity work in the SharePoint state machine workflow? Is there any work around if the delay activity is simply not working there?   Any suggestions are appreciated.

State Machine Workflow XOML issue

  
"Please help me out this problem" "Its too urgent" I have modified State Machine Workflow XOML file and upload again with my application. Now i am getting error while calling CreateWorkflow(). I am getting the following error. "Wokflow Validation Failed" "Activity 'handleExternalEventActivity1' validation failed: Property 'InterfaceType' is not set." If i am uploading the existing XOML file then it is working fine without any error. What i have to do and where i did mistake?

State Machine Workflow timer

  
Hi all,

I am wondering what the best way is to map the following scenario with a state machine workflow.

A customer books a seat online. The seat enters the "Reserved" state. The customer has up to one minute to confirm the reservation, and when he does, the state would change to "Sold".

If, however, he does not do that within that minute, the system would automatically cancel the reservation.

I am stuck on implementing the one minute timer. I would imagine that it would involve a DelayActivity, but I won't know where it fits in the workflow.

Terminating state machine workflow

  

Hi,

I am creating a state machine workflow with 20 states.

My requirement is, irrespective of which state the workflow is in currently, when a user changes an item in the source list as "complete" , the workflow should be terminated.

What would be the best way to achieve this? Should I handle this item change event in all the 20 states? or is there a better way of achieving this?

Please advice.

 

Thanks,

Karthik

 


ASP.Net + State Machine Workflow + Delay Activites

  
We have been developed an approval/rejection/Escalation 3 level State machine worklfow which has been hosted in an ASP.Net application. For escalation we are using multiple delay activities. We have deployed the ASP.Net application in a server. The application is running perfectly as we were expecting when the server is in unlocked state. But Once the server is in Locked or Logged off state the escalation part of the workflow is not functioning as required. Please give us suggestions as we are unable to identify what the issue is?

Thanks any suggestions.

SharePoint 2010 Workflow - Creating multiple tasks

  
I'm working on a SharePoint 2010 workflow which will assign multiple tasks to a list of users.

I'm using the Multiple Tasks webcast from Scot Hillier as a guideline
http://www.shillier.com/archive/2010/08/04/Creating_Multiple_and_Parallel_Tasks%20_in_SharePoint_2010_Workflow.aspx, but I cant' get the workflow to work. 

I've created the custom activity to create a single task, and used a replicator to start the this custom activity for every user.
However, the sub-activities in my custom activity are not shown(as opposed to webcast).

  
 public class CreateSingleTaskActivity : SequenceActivity
    {
        public Guid SPTaskId = default(Guid); 
        public string SPTaskOutcome = default(String);
        public SPWorkflowTaskProperties SPTaskProperties = new SPWorkflowTaskProperties();
        public SPWorkflowTaskProperties SPAfterProperties = new SPWorkflowTaskProperties();
        public SPWorkflowTaskProperties SPBeforeProperties = new SPWorkflowTaskProperties();
        public Guid TaskStatusFieldId = new Guid("FCA4FCB5-503C-4e9f-AC62-CD79EB

State Machine Workflow With CustomList

  

Hi

How To get Custom List value  in state machine workflow.i can get it for document library but not list.

This is my sample code

 

           id = Convert.ToInt16(workflowProperties.Item.ID);
            name = workflowProperties.Item["name"].ToString();
            status = workflowProperties.Item["status"].ToString();

 

I got an error Value Can't be null ..any suggestion???

 

 

Thanks

_____________

arWINdh

 

 


Error retrieving Workflow Properties in a Custom State Machine Workflow WSS 3.0

  
Using Visual Studio 2008 and the Office 2008 State Machine workflow template, I created a VERY SIMPLE workflow with ONE state. In the state initialization, I create a simple task. This works fine when I hard code the title, etc for the task. But, when I need to get some properties out of the list where the workflow was started, I get an exception  I've done this in a sequential workflow and it works fine. Error is: "Value cannot be null. Parameter name: uriString. Code snippet is:

using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Workflow;
using Microsoft.SharePoint.WorkflowActions;

namespace SOPProjectWorkflow
{
    public sealed partial class Workflow1 : StateMachineWorkflowActivity
    {
        public Workflow1()
        {
            InitializeComponent();
        }

        public SPWorkflowActivationProperties workflowProperties = new SPWorkflowActivationProperties();
        public Guid

State Machine Workflow + External Event + Delay activity

  

 

I have state machine workflow with a state contain 2 event driven activities, one is waiting for an external event, and second one is delay. If the external event didn't happen within specified time, timeout occurs and send email. But if the external event delivered, it transited to next state.

 

Both situation works fine. But once the external event occurred and transited to next state, the delay activity time out happens and it sends the mail. I don't want it happen, When i read through various blog, I learnt that once the workflow instance moved to next state, all event subscriptions related to the previous state are removed from the queue.... But it is not happening in my situation

Kindly help me to find where i am going and to resolve this issue..

 

p.s I set manualworkflow scheduler  - useActiv

Upgrade Sharepoint 2007 Custom State Machine/Sequential workflow to SharePoint 2010

  

Hello,

What's the path for upgrading the SharePoint 2007 Custom State Machine/Sequential workflow to SharePoint 2010 when the current SharePoint 2007 environment is upgraded to SharePoint 2010 by an inplace upgrade?

What's the typical estimate time for upgrading SP2007 custom workflow to SP2010 custom workflow?  My gut says 40 to 80 hrs or even less than that, what’s your thoughts?

FYI...I tried to upgrade the SharePoint custom workflow built using visual studio 2008 in SP2007 environment to visual studio 2010 solution/project in SP2010 environment, I got the error messages to refer the following dll's

Microsoft.SharePoint.dll and Microsoft.SharePoint.WorkflowActions.dll

Even after referring the new dlls still the workflow design doesn't show up in the canvas...still work on this to fix mean while want to know the experts insights on this.

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend