CREATE COMPUTE MODULE testjson_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();
CALL CopyEntireMessage();
RETURN TRUE;
END;
CREATE PROCEDURE CopyMessageHeaders() BEGIN
DECLARE I INTEGER 1;
DECLARE J INTEGER;
SET J = CARDINALITY(InputRoot.*[]);
WHILE I < J DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I = I + 1;
END WHILE;
END;
CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot = InputRoot;
SET OutputLocalEnvironment = InputLocalEnvironment;
SET OutputRoot.Properties.IdentitySourceType='usernameAndPassword';
SET OutputRoot.Properties.IdentitySourceToken = 'admin';
SET OutputRoot.Properties.IdentitySourcePassword = 'admin';
SET OutputLocalEnvironment.Destination.HTTP.QueryString.action= 'start';
SET OutputLocalEnvironment.Destination.HTTP.QueryString.bpdId = '25.3b2df775-a731-4161-9b3e-195367b9ca85';
SET OutputLocalEnvironment.Destination.HTTP.QueryString.parts = 'header';
END MODULE;
Now when i m trying to execute the flow it shows me setting the parameters in the OutputLocalEnvironment, but somehow these are not getting passed to the HTTPRequest node as the reply that i get from the API is that param action not found.
The API is working if i put the params ahead of the HTTPRequest node url.
Any help/documentation to proceed further would help here.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum