| | | Senior Member
       
Group: Forum Members Last Login: Wednesday, September 03, 2008 Posts: 9, Visits: 32 |
| | Hi. I have a error. // sestavim XML dokument - vhodni podatki v WF string _xml = "";_xml = _xml + "<dopust>";_xml = _xml + "<zaposlen>" + ddZaposleni1.SelectedValue.ToString() + "</zaposlen>";_xml = _xml + "<od>" + txtOd.ToString() + "</od>";_xml = _xml + "<do>" + txtDo.ToString() + "</do>";_xml = _xml + "<nadomesca>" + ddZaposleni2.SelectedValue + "</nadomesca>";_xml = _xml + "<razlog>" + txtRazlog.ToString() + "</razlog>";_xml = _xml + "</dopust>";// inicializacija instance za kanal - Webstring _url = "";SynchronousActionData _syncdata = new SynchronousActionData(this.Context,"WebWorkList");// User ID zaposlenega - submit//int _uid = System.Int32.Parse(Session["UserID"].ToString());string _uid = Session["UserID"].ToString();// inicializacija instance Workflow.NET.Engine.Client class z Application in Workflow imenom try{ Workflow.NET.Engine. Client _WFClient = new Client("Testni", "Test DOPUST-i");//_WFClient.ExecuteBlocking(_uid, _xml, _syncdata, true, out _url);_WFClient.Execute(_uid, _xml); _WFClient.Close(); Response.Write( "ZAPOSLENI: " + Session["UserID"].ToString() + " " + Session["Zaposleni"].ToString() + "<BR>");Response.Write( "XML: " + _xml + "<BR>");Response.Write( "URL: " + _url + "<BR>");Response.End(); } catch (Exception exeu){ Response.Write( "Napaka: " + exeu.Message + "<BR>");Response.Write( "ZAPOSLENI: " + Session["UserID"].ToString() + " " + Session["Zaposleni"].ToString() + "<BR>");Response.Write( "XML: " + _xml + "<BR>");Response.Write( "URL: " + _url + "<BR>");Response.End(); }
BR Mitja K. |
| | | | Supreme Being
       
Group: Forum Members Last Login: Tuesday, November 11, 2008 Posts: 166, Visits: 704 |
| Hi Mitja, _WFClient.Execute(_uid, _xml); While passing the userid, you need to precede with the user provider of the repository and the following are the possible values. 1. Form Provider: “sqlprovider::” + _uid 2. Activedirectory: “activedirectory::” + _uid 3. Skeltalist: “skeltalist::” + _uid
Regards, Bineesh |
| |
|
|