Saleh,
Are you asking how to start a workflow using the aspx controls for blackpearl project in blackmail? Sorry, I didn't include that feature in the project. Right now it can only be used in client events. That should be a relatively easy feature to add, but I just haven't had time. Here is some sample code you could use to start a workflow:
SourceCode.Workflow.Client.Connection conn = null;
try
{
conn = new SourceCode.Workflow.Client.Connection();
conn.Open("blackpearl"); //get from web.config
SourceCode.Workflow.Client.ProcessInstance pi = conn.CreateProcessInstance("HardwareApprovalProc\\Hardware Approval"); //web.config
pi.DataFields["somefield"].Value = "some value";
conn.StartProcessInstance(pi);
}
catch (Exception)
{
throw;
}
finally
{
if (conn != null) conn.Close();
}
The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.