RuntimeServiceGetActivityInstanceContextFromThreadIndex Method |
Get the context of an action from its Thread-Index MIME header.
Namespace:
Advantys.Workflow.Web.Services.Processes.Runtime
Assembly:
Advantys.Workflow.Web.Services.Processes.Runtime (in Advantys.Workflow.Web.Services.Processes.Runtime.dll) Version: 7.8.0.0 (7.8.0.0)
Syntax public string GetActivityInstanceContextFromThreadIndex(
string threadIndex
)
Public Function GetActivityInstanceContextFromThreadIndex (
threadIndex As String
) As String
Parameters
- threadIndex
- Type: SystemString
Thread-Index MIME header.
Return Value
Type:
StringExceptions Remarks Examples
Try out these URLs directly in your browser or RSS Reader.
- Get the contact of the action with the Thread-Index AcXLD9V95+3Sk+DpgPG0hSQXkLfnOw==<br />http:
This HTTP GET sample gets the context of the action with the Thread-Index AcXLD9V95+3Sk+DpgPG0hSQXkLfnOw==
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
System.Net.HttpWebRequest httpWebReq = null;
System.Net.HttpWebResponse httpWebResp = null;
System.IO.StreamReader myReader = null;
string url = string.Empty;
string response = null;
url = "http://yourserver:port/wfgen/ws/ProcessesRuntime.asmx/GetActivityInstanceContextFromThreadIndex?ThreadIndex=AcXLD9V95+3Sk+DpgPG0hSQXkLfnOw==";
httpWebReq = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(url);
httpWebReq.Method = "GET";
httpWebReq.Credentials = System.Net.CredentialCache.DefaultCredentials;
httpWebReq.ContentType = "text/xml; charset=utf-8";
httpWebResp = (System.Net.HttpWebResponse)httpWebReq.GetResponse();
myReader = new System.IO.StreamReader(httpWebResp.GetResponseStream());
response = myReader.ReadToEnd();
httpWebResp.Close();
Console.Write(response);
}
}
}
This SOAP example gets the context of the action with the Thread-Index AcXLD9V95+3Sk+DpgPG0hSQXkLfnOw==
A web reference at www.mycompany.com has been added in the project.
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Net;
using System.Xml;
using System.Xml.Xsl;
using com.mycompany.www;
<br />
public partial class _Default : System.Web.UI.Page
{
protected RuntimeService myRuntimeService = null;
<br />
protected void Page_Load(object sender, EventArgs e)
{
GetActivityInstanceContextHeader myGetActivityInstanceContextHeader = null;
<br />
myGetActivityInstanceContextHeader = new GetActivityInstanceContextHeader();
myRuntimeService = new RuntimeService();
myRuntimeService.GetActivityInstanceContextHeaderValue = myGetActivityInstanceContextHeader;
myRuntimeService.Credentials = CredentialCache.DefaultCredentials;
<br />
Response.Write(myRuntimeService.GetActivityInstanceContextFromThreadIndex("AcXLD9V95+3Sk+DpgPG0hSQXkLfnOw=="));
}
}
<br />
See Also