Comments

ChuckSimply created an issue. See original summary.

vishalkhialani’s picture

Status: Active » Postponed (maintainer needs more info)

Hi,
Please share more information.

Thank you,
Vishal

neeravbm’s picture

Vishal, please go through the slack channel.

rensingh99’s picture

Assigned: Unassigned » akshay.kelotra
Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new5.81 KB

Hi,

There is no need to create this action. When you will apply the patch from this issue(https://www.drupal.org/project/if_then_else/issues/3089566) patch #3.

Then you will able to connect "Value: Entity" with "Action: Set Entity Field Value".

After applying this patch I had made the rule as per requirement. But there was another error related to the DateTime field.

I have solved that issue and uploaded the patch.

Below is my rule screenshot.

Only local images are allowed.

Thanks,
Ren

neeravbm’s picture

Status: Needs review » Needs work

If this works, that means there is another error in socket types. Socket type of "Value: Entity" node's output Entity socket should be "object.entity". Socket type of "Action: Set Entity Field Value" node's input Entity socket should be "object.entity.node.body_of_water". It shouldn't be possible to connect output socket of type "object.entity" to input socket of type "object.entity.node.body_of_object".

rensingh99’s picture

Issue summary: View changes
StatusFileSize
new448.81 KB

The socket type of "Value: Entity" node's output Entity socket is "object.entity.node". Socket type of "Action: Set Entity Field Value" node's input Entity socket is "object.entity.node.body_of_water".

And we had made socket compatible for input as well as output as follows.

If socket is "object.entity.node.body_of_water" then it can be connected with
1) object.entity.node.body_of_water
2) object.entity.node
3) object.entity

neeravbm’s picture

Issue summary: View changes

This is wrong. There is a difference between what input sockets should connect to and what output sockets should connect to:

If the input socket type is "object.entity.node.body_of_water", then it should only connect with "object.entity.node.body_of_water" and "object.entity.node.body_of_water.*" socket types. It shouldn't connect with socket of types "object.entity.node", "object.entity" or "object".

If the output socket type is "object.entity.node.body_of_water", then it can connect with "object.entity.node.body_of_water", "object.entity.node", "object.entity" or "object". It shouldn't connect with "object.entity.node.body_of_water.*" socket types.

akshay.kelotra’s picture

Status: Needs work » Needs review

@ChuckSimply
I have created a new node type to fix this issue. That new node type is committed to the dev version of the module as of now.
New Node name: Cast to Entity type

In thise select the entity type and bundle type and the connect it's input to Value: Entity Node and it's output to set field value node.
Let me know if you get any issue with it.

akshay.kelotra’s picture

Status: Needs review » Fixed
akshay.kelotra’s picture

Status: Fixed » Closed (fixed)