Serialize function call to a JSON string, or deserialize it to invoke the function call.
Categories > Logic > rex_fncallpkgIntroductionLinksDependenceUsageSingle function callSerializeDeserializeAssign function objectMultiple function callsSerializeDeserializeRetrieve function queueMore samples
Serialize a function call by Expression:FnCallPkg( function_name, parameter0, parameter1, ..)
. It returns a JSON string in this format
x
[function_name,parameter0,parameter1, ]
The interface of parameters is the same as `Expression:Call of official function object,
Action:Call function
, or Expression:Call
to deserialize JSON to invoke function call.
This plugin invokes function by one of these function object
Or assign function object by Action:Setup callback
.
Multiple function calls are stored in a queue.
Push function calls into queue
Action:Clean
, clean queueAction:Push
, push function call into queue.Expression:FnQueuePkg
, serialize function queue. It returns a JSON string in this format
xxxxxxxxxx
[[function_name,parameter0,parameter1, ],[function_name,parameter0,parameter1, ], ]
Action:Load
, to load serialize result Expression:FnQueuePkg
, or Expression:FnCallPkg
.
Action:Call function
, or Expression:Call
to deserialize JSON to invoke function call.
Condition:For each package
to retrieve parameters o function call in queue in order.
Expression:CurName
, Expression:CurParam
Modify parameter
Action:Overwrite parameter
, Action:Add to parameter