Skip to main content
June 24, 2022
Question

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

  • June 24, 2022
  • 12 replies
  • 0 views

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

    12 replies

    mikes0011
    Brainy
    June 24, 2022
    the variables declared inside the button saveInto are not updating

    Can you clarify what you mean by this? 

    What are you expecting these variables to do, and what are you using to judge whether they're updating?

    The Expression Guru
    stefanhelzle0001
    Brainy
    June 25, 2022

    Can you share your code?

    June 26, 2022

    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
    )

    }
    )

    stefanhelzle0001
    Brainy
    June 26, 2022

    Jepp ... you are overwriting the value.

    Next time, please ...