Do we have an option to invoke a process model from SAIL Code?

Do we have an option to invoke a process model from SAIL Code?

OriginalPostID-154018

OriginalPostID-154018

  Discussion posts and replies are publicly visible

Parents
  • Yes.. We can invoke a process model from the SAIL using the function 'startprocesswrite' with the 'bind' function

    Eg: local!invokeProcess:bind(
    {
    valueToBePassedToProcess:null
    },
    startprocesswrite(
    processModelId: ## /* Process Model Id of the process that has to be invoked */,
    processParameters: _
    )
    )

    You can use this local variable(local!invokeProcess) to invoke the process model from the SAIL. Say you want to pass a 'Name' field from the SAIL to the process model on clicking a button, the sample code will be like below :

    a!buttonWidget(
    label: "Submit",
    style: "PRIMARY",
    value: {
    valueToBePassedToProcess:ri!name
    },
    saveInto: {
    local!invokeProcess << _,

    )
Reply
  • Yes.. We can invoke a process model from the SAIL using the function 'startprocesswrite' with the 'bind' function

    Eg: local!invokeProcess:bind(
    {
    valueToBePassedToProcess:null
    },
    startprocesswrite(
    processModelId: ## /* Process Model Id of the process that has to be invoked */,
    processParameters: _
    )
    )

    You can use this local variable(local!invokeProcess) to invoke the process model from the SAIL. Say you want to pass a 'Name' field from the SAIL to the process model on clicking a button, the sample code will be like below :

    a!buttonWidget(
    label: "Submit",
    style: "PRIMARY",
    value: {
    valueToBePassedToProcess:ri!name
    },
    saveInto: {
    local!invokeProcess << _,

    )
Children
No Data