Recherche…


Remarques

Les flux de travail constituent un moyen flexible et contrôlable de création, de maintenance et de révision de contenu. Le workflow contient une liste d'états et de commandes.

Affecter un flux de travail à un élément

Les informations sur le workflow de l'élément sont stockées dans le champ "Workflow".

var workflow = Factory.GetDatabase("master").WorkflowProvider.GetWorkflow(workflowId);
workflow.Start(item);

var workflowId = item.Fields["__Default workflow"].Value;
var workflow = Factory.GetDatabase("master").WorkflowProvider.GetWorkflow(workflowId);
workflow.Start(item);


Modified text is an extract of the original Stack Overflow Documentation
Sous licence CC BY-SA 3.0
Non affilié à Stack Overflow