0

Stibo STEP: What is the javascript to initiate a node/item in workflow. Don't want to use default wizard screen as I want to just initiate children of the node and not the node itself.

Sid Holland
  • 2,871
  • 3
  • 27
  • 43
PIM
  • 3
  • 3
  • Welcome to Stack Overflow! You can take the [tour] first and learn [ask] a good question and create a [mcve]. That makes it easier for us to help you. – Katie Jan 13 '17 at 16:40

1 Answers1

2

You can initiate a node into a workflow thus (and it's always wise to check if it's already in there first):

var wfID = "ID.of.workflow";

if (!node.isInWorkflow(wfID)) {
    node.startWorkflowByID(wfID, "Put workflow comment here");
}
Sid Holland
  • 2,871
  • 3
  • 27
  • 43