Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By testmail
#816916
/**
* @method
*
*
* @name test
* @label test()
*
* @param string | $ba=''| number1 | number1
* @param string | $bb=''| number2 | number2
* @return array | @@answer | answer
*/
function push($ba, $bb) {
$answer = $ba + $bb;
return $answer;
}
User avatar
By RicardoMG
#827973
Hello!

I created a process where I use your code in a trigger, and I did not get any problems.
1. my process has 2 tasks A and B.
2. I created 3 variables of type string ba, bb and result.
3. assign each variable to a text field control in the first dynaform
3. In the second task I have a dynaform which the result variable is assigned to the text field.
4. the trigger is executed before task B.
 
This is the trigger code I used:

/ **
* @method
*
*
* @name test
* @label test ()
*
* @param string | $ ba = '' | number1 | number1
* @param string | $ bb = '' | number2 | number2
* @return array | @@ answer | answer
* /
function push ($ ba, $ bb) {
$ answer = $ ba + $ bb;
return $ answer;
}
@@ result = push (@@ ba, @@ bb);

I am attaching the example I did.

Best regards, Ricardo.
Attachments
(38.72 KiB) Downloaded 235 times
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]