Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
To save the stored procedure OUT variable value in a Joget process variable:
Create Process Variable:
procOutput
in your Process Builder.Configure JDBC Tool:
sql
{? = call my_stored_procedure(?, ?)}
Map Output to Process Variable:
java
# Assuming 'outputValue' holds the OUT parameter value
workflowAssignment = workflowManager.getAssignment(activityId);
workflowManager.activityVariable(workflowAssignment.getActivityId(), "procOutput", outputValue);
This sets the procOutput
variable with the value from the stored procedure.
A documentation on this in the KB for you to read too : Call Stored Procedure - MySQL#CallingthestoredprocedureinJogetWorkflow
Hope this helps!
I am calling a stored procedure in SQL query tool in process builder. How to save the stored procedure OUT variable value or return value in process builder variable