when calling a!startprocess function in save Into, variables declared inside the save Into are not updating

Hi Team,

I have a requirement to call a process model inside the button saveInto using a!startprocess function. But when i am using the function the variables declared inside the button saveInto are not updating. 

Any Idea on how to fix this issue.

Thanks in Advance

  Discussion posts and replies are publicly visible

Parents
  • Hi Stefan,

    Please find the below sample code. Actually the issue is happening whenever is interface is called from top parent rule.

    Actually in the start process we are passing the document data to some external system.

    But when the start process is using inside the button save Into then the button value (ri!buttonAction) is not getting updated but whenever i try to test the same interface by commenting the start process function the button saveInto are updating properly

    Please let me know if any other extra information is required

    a!buttonWidget(
    label: "SUBMIT",
    value: "SUBMIT",
    saveInto: {
    ri!buttonAction,
    rule!SK_UpdateCaseData(
    caseDataControls: ri!lockScreenDetails
    ),
    a!startProcess(
    processModel: cons!SK_PM_LOCK_SCREEN_DETAILS,
    processParameters: {
    lockScreenDetails: ri!lockScreenDetails,
    lockScreenId: ri!lockScreenId
    }
    ),
    a!save(
    target: {
    ri!buttonAction,
    ri!lockScreenDetails,
    ri!lockScreenId
    },
    value: null
    )

    }
    )

Reply
  • Hi Stefan,

    Please find the below sample code. Actually the issue is happening whenever is interface is called from top parent rule.

    Actually in the start process we are passing the document data to some external system.

    But when the start process is using inside the button save Into then the button value (ri!buttonAction) is not getting updated but whenever i try to test the same interface by commenting the start process function the button saveInto are updating properly

    Please let me know if any other extra information is required

    a!buttonWidget(
    label: "SUBMIT",
    value: "SUBMIT",
    saveInto: {
    ri!buttonAction,
    rule!SK_UpdateCaseData(
    caseDataControls: ri!lockScreenDetails
    ),
    a!startProcess(
    processModel: cons!SK_PM_LOCK_SCREEN_DETAILS,
    processParameters: {
    lockScreenDetails: ri!lockScreenDetails,
    lockScreenId: ri!lockScreenId
    }
    ),
    a!save(
    target: {
    ri!buttonAction,
    ri!lockScreenDetails,
    ri!lockScreenId
    },
    value: null
    )

    }
    )

Children