Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderators: ArturoRobles, ArturoRobles

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 25 times

I have a suggest where user have to select some do[…]

The 500 Internal Server Error is the general catch[…]

Really very nice blog information for this one and[…]

This is a long, lengthy and cumbersome process. T[…]