New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Processes: allow actions to return data #1688
Comments
Use case: return value from a service and call a JS function:
Or something along those lines (the alert text would need to be escaped, in particular). |
We also need this for #2132 if we have a dialog asking for an email address which we want to pass to the
|
+1 from customer, to be able retrieve an error message returned by a |
+1 from user for the same use case mentioned in the previous comment. |
Also related to #224 and #3803: we'd like to clarify the source of a "set control value" action instead of implicitly considering that it comes from the service response. Now if data is conceptually stored in
If they are accessible with a |
+1 from customer to access the result from |
+1 from me to have such feature |
+1 from customer for accessing a |
Also related to the new "action syntax", which needs something similar. |
+1 from customer who would like to see the |
For |
Example: <property as="xs:string" name="oxf.fr.detail.process.submit.*.*">
send(
method = "GET",
uri = "https://www.w3schools.com/XML/simple.xml",
replace = "instance"
)
then success-message(
message = "First item on the menu: {xxf:instance('fr-send-submission-response')/food[1]/name}"
)
</property> |
Internally, actions return
Try[Any]
. Butsend
, in particular, could return data, including:We could see this as an immutable bag of parameters going through the process.
send
would be one of the few actions returning or updating the current bag. The parameters could be accessed from XPath expressions as variables or via functions (e.g. in conditions), or via parameters.See also discussion about calling a CMIS service and returning an id. This has also been discussed with a customer's RFE.
The text was updated successfully, but these errors were encountered: