As I've shown in a previous post, you'll need to create an application connection, find the doc handle of the doc you want to attache a lifecycle to, and create the doc object. Once you'll done that, you'll need to create the workflow and lifecycle objects. Then, add the doc to the lifeycle;
Workflow workflow = g_Application.Workflow;
LifeCycle lifeCycle = g_Application.Workflow.LifeCycles.Find(<config number of the lifecycle);
workflow.AddDocumentToLifeCycle(doc, lifeCycle);
Workflow workflow = g_Application.Workflow;
LifeCycle lifeCycle = g_Application.Workflow.LifeCycles.Find(<config number of the lifecycle);
workflow.AddDocumentToLifeCycle(doc, lifeCycle);
No comments:
Post a Comment