Search code examples
javascriptpim

Stibo STEP: What is the javascript to initiate a node/item in the workflow


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.


Solution

  • 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");
    }