
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Screenshot_1.png | 448.81 KB | rensingh99 |
| #4 | cast_entity_to_bundle-3089974-3.patch | 5.81 KB | rensingh99 |

| Comment | File | Size | Author |
|---|---|---|---|
| #6 | Screenshot_1.png | 448.81 KB | rensingh99 |
| #4 | cast_entity_to_bundle-3089974-3.patch | 5.81 KB | rensingh99 |
Comments
Comment #2
vishalkhialani commentedHi,
Please share more information.
Thank you,
Vishal
Comment #3
neeravbm commentedVishal, please go through the slack channel.
Comment #4
rensingh99 commentedHi,
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.
Thanks,
Ren
Comment #5
neeravbm commentedIf 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".
Comment #6
rensingh99 commentedThe 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
Comment #7
neeravbm commentedThis 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.
Comment #8
akshay.kelotra commented@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.
Comment #9
akshay.kelotra commentedComment #10
akshay.kelotra commented