Skip to main content
15-Moonstone
October 22, 2020
Solved

[TWX Flow 9.0.2] - Boolean Input for Flow Actions

Hi,

I try to execute a Thingworx service (Action "Service Execute") with a boolean input value in a Flow. The Boolean input parameter for the executed action is given from the input parameter (also Boolean) from the Flow itself.

 

The issue is that I cannot bind the Input params (oder params from other actions) to the Boolean input (like I could with any other input type like a String). I only can choose between a fixed true or false; see attached image.

There is a option to not use the "Form" input a apply a JSON, but that does not work either. Because my second input variable (which is a String) is getting ignored somehow.

 

(i.e. {"BoolVar":{{$Service.BoolInput}},"order":{{$Service.orderNo}}} )

 

DanZ_0-1603365972671.png

I don't like workarounds like:

- Duplicate the action (one with "true", the other with the "false" input)

- Change the input variable of the Thingworx service from Boolean to String

because this is a fairly simply use case and it just would make things more complicated (or harder to understand for third parties) as they are.

 

Is this a bug? Or is there a reason why I can't bind Boolean Inputs for the "Service Execute" Action?

gnandyalaAnswer
5-Regular Member
March 22, 2021

Hi danz,

We have checked this now in 9.0.1 and it is working as required with two json inputs

 

Thank you,

Gautham

10 replies

5-Regular Member
October 27, 2020

Hi DanZ,

 

Looks like a bug i will dig in if there is a reason why this is disabled.

 

Thank you,

Gautham

Translate
5-Regular Member
November 16, 2020

Hi DanZ,

 

I can confirm it is working that way.

I will find the reason why the boolean input is getting ignored.

In case you want this functionality you can open a ticket with us.

 

Thank you,

Gautham

Translate
5-Regular Member
January 11, 2021

Hi DanZ,

 

This is a bug. We are working on fixing it.

 

Thank you,

Gautham

Translate
5-Regular Member
March 9, 2021

Hi Danz,

 

We created a Nodejs Action that gave a boolean result and appended that result in Service Execute action.
Note: Used option AssignJson

We were able to run it boolean2.pngboolean.pngSuccessfully.

Translate
DanZ15-MoonstoneAuthor
15-Moonstone
March 15, 2021

Hi,

 

have you tried using a second parameter? I had problems when using the Assign JSON input because my second input param was getting ignored. The boolean input itself worked fine.

Translate
5-Regular Member
March 17, 2021

Danz,

 

Second parameter works as well.

Can you send me your entity so i can test it.

 

Thank you,

Gautham

Translate
Support
April 2, 2021

Hi @DanZ.

 

If you feel your question has been answered, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Translate