Question

Out parametres from a process triggered from the edit page.

Hi,

we are using your specification about how to trigger a process form an edit page.

Well, in this way all work fine, and we pass to the process a value like a parametre in ARGS using your example:

var args = {
                        // Name of the process that should be run.
                       sysProcessName: "CustomProcess",
                        // Object with the value of ContractParameter input parameter for CustomProcess parameter.
                       parameters: {
                            ContactParameter: contactParameter
                        }
                    };

 

But our question is if like we can pass a value to the process like INPUT, Can we receive a value form the process like OUTPUT to the Edit Page?

Thanks.

 

File attachments

Like

1 comments

Dear Ignacio,

Please see the following article, it has the instructions and examples on how to pass a process execution result.

https://academy.bpmonline.com/documents/technic-sdk/7-7-0/running-bpmonline-processes-through-web-service

"This example demonstrates running of the CustomProcess process. The process execution result is stored in the input parameter of the CustomProcessResult parameter and returned in the query. The incomeParam parameter with "IncomeParamValue" is transferred additionally to CustomProcess process

.../0/ServiceModel/ProcessEngineService.svc/CustomProcess/Execute?ResultParameterName=CustomProcessResult&incomeParam=IncomeParamValue

The method execution result returns in the form of a string that contains JSON-serialized value of random type data (null value is acceptable). Deserialization and reduction of the obtained result to a definite type of data should be executed in the code that calls the web-service. 

If the parameter with the RESULTPARAMETERNAME name is missing in the called process, the web-service will return a null value."

 

Show all comments