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


Post New Web Links

Dynamic Workflow Creation

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :JavaScript/VBScript
 

Is it possible to generate workflows dynamically?

I want to be able to create workflows from scratch without having to use the workflow designer.

Take the following example:

 

I have an ASP.NET application in which I can manage the activities, tasks, conditions.

I say for example: I want a workflow which start by the create request. Then I have a condition which perfoms a check.

After this I want a task for the supervisor or for a given group of users.

 

This activity is bound to that condition etc. With a validation to check if the workflow is correct.

I press a save button and a workflow is generated with asp.net tasks.

 

The goal is that non-developer people are able to generate workflows without having to call the developers to create a new workflow.

 

Do u think this kind of functionality is feasible with WWF?




View Complete Post


More Related Resource Links

Need help regarding C# / AJAX Dynamic Controls creation

  

radiobuttons is assigned before page init.. 

public partial class Default : System.Web.UI.Page
{
//Assign values as a specific Dynamic WebControl Creation.
List<RadioButton> radioButtons = new List<RadioButton>();
List<CheckBox> checkBoxes = new List<CheckBox>();




Then I created a class that would dynamically create a table containing the available flights depending on session.. (See CallPageLoad())

The placeholder and button is inside the UpdatePanel...

on the button inside the update panel, (btnSelect)

i have this code which works... 


protected void btnSelect_Click(object sender, EventArgs e)
{

Label1.Text = Convert.ToString(radioButtons.Count);


It detects the number of radiobuttons that were dynamically created...

But when I use the following code inside the BtnSelectClick event...

//PLS HELP.......
foreach (RadioButton button in radioButtons)
{
if (button.Checked == true)
{
Label1.Text = "You select... " + button;

CallPageLoad();
}

}


It does not work even though t

Dynamic workflow with While activity

  
We have a very strange problem with WWF 3.5. All our workflows are loaded dynamically, i.e we have different  assemblies containing libraries of the workflows. We starting each workflow by specifying path to assembly and name of the workflow class in the assembly:     Assembly  workflowAssembly = Assembly.LoadFrom(path);     Type  workflowType = workflowAssembly.GetType(name ); We are creating work flow instance as following and execute starts:     WorkflowInstance instance =     workflowRuntime.CreateWorkflow(workflowType, dictParameters);      instance.Start(); Everything works just fine till it hits the While activity. Here workflow is terminated because of the exceptions. Interesting thing is that exceptions here are different depending on what work flow is doing. In case when loop execute sequence activity containing just code activity which increasing some index by 1 each iteration (what could be simpler!) exception is, providing as part of the WorkflowTerminatedEventArgs e: Exception    {"Error binding to target method."}    System.Exception {System.Runtime.Serialization.SerializationException}   When our assembly containing workflows has name  "TestLibPghWWF" and inside While activity, the sequence activity contains real,&

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.    

Dynamic method creation using code snippet

  
Hello, I am looking to map a method from php to .NET. There are various methods I am targeting, and most don't satisfy a one method-to-one method conversion; alot of the mapping really requires a few lines of logic thrown in, and not just "this .NET function call for this php function call." Anyway, I've defined the mappings as strings, and all I need to do is plug them into a dynamic method that will create, run the code, and return the appropriate value. I do not want to create an assembly in the process, which I think leaves CodeDomProvider out of it. And I don't want to generate my code in IL, which I think leaves MethodBuilder and DynamicMethod out of the running. Can anyone lead me in the right direction here? Is there a way to do what I am asking?   Thanks!

Dynamic Text Boxes Creation Problem

  
Hi all, I am creating 5 textboxes in a row. A new creates when user press enter in the last textbox. I have taken a hidden text field and in OnKeyDown of last textbox I am assigning the combination of last textbox Id with the table count  to the hidden field and in VB Code I am checking whether the tableCount + Last textbox Id is equal to the hidden field or not then only I am generating the new row. here is the code In JavaScript On KeyDown of remarks textfield. function funcNewRow(id,count,e) {    var e = event || evt;    var charCode = e.which || e.keyCode;    if(charCode == 13){      e = cancelKey(e);      htxtBox.value = id + count;    } }   In VB Page_load method calling getTableRow() method   if htxtBox.value = "remarks" & (Tbl.Rows.Count + ViewState("TotalClearedItems")) Then  Tbl.Rows.Add(GetTableRow(Tbl.Rows.Count + 1 + ViewState(Panel1.Controls.Add(Tbl))  Panel1.Controls.add(Tbl) htxtBox.Value = "" end if   Here I have to implement a clear functionality such as each row at last contains a check box when user click the check box and press clear button the checked rows have to deleted .   The clear button code as follows : cnt = CInt(Tbl.Rows.Count)  For i = cnt To 1 Step -1 c = Pag

Dynamic Div Creation.. or something?

  

Hello,

I need some advices please.

I'm trying to build a website for real estate listing. now the data would look like a datagrid. and while clicking on it, it should open under the clicked row the dynamic data related to the specific row. (like an AJAX accordion).

I will try to explain myself in a better way. this website for example ( ignore the language, couldnt find any better example LOL)

http://www.yad2.co.il/Nadlan/rent.php

Now, i've been told that this works by using "Dynamic Div Creation" which i have no idea how it should work this way. Is it possible to make it work by using an Accordion inside a datagrid? or what?!!

If anybody can advice me or give me a sample code of doing such a thing i would be REALLY grateful.


VS Workflow creation fails to be created on one site

  

This is a long shot, there must be many reasons for the failure

Its a 2007 site recently upgraded using database attach.

When I try to create any sort of workflow on a particular site VS2010 asks for the site name then the dialog box disappears with no error message.

  • Can create all other project types on this site
  • Site opens OK in browser and SP designer
  • Can create workflows on subsites

Anyone else experienced the same?

Thanks,

casey


Trying to generate dynamic link to a document within approval workflow email message

  

In the out of the box approval workflow, the fields below are used to dynamically create a link within the email for a user to access the item/document to be reviewed:

 

Review [%TaskProcess:Item Title%].[%Variable: InternetLink%]


If I create an approval workflow and modify the text around what comes out of the box, the link works.  If I add those exact fields (period and space included) via the "Add or Change Lookup" box (field selector), it doesn't work. It displays the title as a link but without a document extension of XML (for Infopath form for instance).

 

I don't want to have to delete my workflow and recreate it just to get that link to work.

Any ideas on why the "[%TaskProcess:Item Title%].[%Variable: InternetLink%]" only works when it is created out of the box versus building the string manually ?


dynamic content database creation exception

  

Hi,
   For Creating a database dynamically  i created a webpart, but there will be an exception comes at runtime.Following  code shows the exception :

System.Security.SecurityException: Access denied. at Microsoft.SharePoint.Administration.SPPersistedObject.Update() at Microsoft.SharePoint.Administration.SPServer.Update() at Microsoft.SharePoint.Administration.SPPersistedObject.Update(Boolean ensure) at Microsoft.SharePoint.Administration.SPPersistedChildCollection`1.Add(T newObj, Boolean ensure) at Microsoft.SharePoint.Administration.SPPersistedChildCollection`1.Ensure(T newObj) at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.Add(Guid newDatabaseId, String strDatabaseServer, String strDatabaseName, String strDatabaseUsername, String strDatabasePassword, Int32 warningSiteCount, Int32 maximumSiteCount, Int32 status, Boolean provision, Boolean allowUpgrade, Boolean flushChangeLog) at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.Add(String strDatabaseServer, String strDatabaseName, String strDatabaseUsername, String strDatabasePassword, Int32 warningSiteCount, Int32 maximumSiteCount, Int32 status, Boolean provision, Boolean allowUpgrade) at Microsoft.SharePoint.Administration.SPContentDatabaseCollection.Add(String strDatabaseServer, String strDatabaseName, String strDatabaseUsername, String strDatabasePassword, Int32 warningSiteC

Using dynamic data for approval workflow / Content staging.

  

Hello people!

Started evaluating dynamic data around a week back, so not sure if a thread exists for this query.

Has anyone used or evaluated Dynamic Data for implementing a Approval Workflow? 

For Example-
Products Table- ProductName, UnitPrice, Discount, .... ...., State (Sumbitted = 1, Updated = 2, Approved = 3, Rejected = 4)

Each time a Product's Discount is updated, it goes for approval from Senior Management. And only after approval the Product gets its new price.

 

In my project, I have quite many entities that need approval before they can be accepted or updated.

 

Thanks in advance! :)


howto modify the url using (dynamic string) workflow

  

HI,

i have created a workflow .

i have created a variable in that variable i am passing the url of workspace.

The workspace url is like this https://ideaentityapacmicrosoftonlinecom-3.sharepoint.apac.microsoftonline.com/Sesha/default.aspx?InstanceID=1

I want to modify like this https://ideaentityapacmicrosoftonlinecom-3.sharepoint.apac.microsoftonline.com/Sesha/

ie;i want to capture upto that onlyafter that i want to add /Lists/Attendees/AllItems.aspx this after url .i am able to add this one but not able to deleted the instance id=1.after that i want to send mail to attendees.


Configuring approval workflow to New Site creation process

  

Hi All,

I have a requirement where in i have a webapplication which consists more than 10 site collections.Users mapped to a particular role got provision to create a new site under these site collections.The process should be like when the previleged users creates the site,it should go for one or more rounds of approval and the corresponding site should ge t created when the final round of approval is done.I want this to be implemented in MOSS 2007.

Can some tell where i can go ahead with OOB features or Visual studio workflows?

Thanks in Advance.

 


Custom Workflow Approval form creation in SharePoint 2010

  

How to create Custom workflow approval form in sharePoint 2010.?

I have to create serial approval workflow with 3 stages,

1. In each of approval stage, Approver has to approve and update the value in the SharePoint List.

2. Workflow email should have email link to workflow list item.

 

Please let us know how to achieve this. Is this possible using Out of Box workflow?

 

 

 

 

 

 


Marulasiddappa SB (Swamy)

Multiline Dynamic String Builder in SharePoint Workflow Designer

  
I am wanting to insert a newline or carriage return, or whatever, between two dynamic lookups inside the construct 'Dynamic String Builder'. Is this possible? The purpose of this activity in my sequential workflow is to append or concatenate the notes from each step into a multi-line string. I update the current notes into avariable called 'notesVariable', and then push it into a SP column called 'All Notes'. It works, but looks messy. Is this a bass-ackwards approach? Is there a 'best practice' that would look nicer?

Dynamic assembly creation in .NET Framework 4.0

  

While creating dynamic assembly

in .net frame work 4.0 the assembly type is generating as System.Reflection.E

MY SQL( DYNAMIC TABLE CREATION ).

  

HI, I NEED  SOME  HELP.  I  AM  SHAILANDRA  SHARMA   ,  I  AM MAKING  A PROJECT,  THE  NEED  OF THE  PROJECT  IS  THE "DYNAMIC  TABLE  CREATION  ON  THE  CLICK OF  A BUTTON".  I  HAVE  A "  TEXT-BOX " AND A " BUTTON "  THE NAME  OF  THE  TABLE IS THE  INPUT IN  THE " TEXT-BOX" , THE INPUT OF THE  TEXT-BOX IS STORED IN THE VARIABLE  AND THAT VARIABLE IS USED IN THE QUERY  OF  TABLE CREATION  , BUT  THE  SQL  TELLS  TO  SEE THE  SYNTAX.

              SO, TELL ME THE PROPER SOLUTION OF THE ABOVE PROBLEM.

 

THANKS.

 

 


Workflow for the creation and editing of sites within a site collection

  

Hi there.

How would you go about creating a workflow for the creation and editing of sites within a site collection?

I'm assuming users would have different roles such as Approvers and Authors.

 


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