Hello,

I've just try the Editorial Workflow tutorial (http://drupal.org/node/1027546). But when creating the first rule, I didn't see any fields when adding the "data comparaison" condition. When writing directly the field name node:field-workflow, I got an error when validating "The integrity check failed with the following error message: condition data_is: Missing configuration for parameter data."

The modules :
Rules 7.x-2.x-dev (2011-May-19)
Entity 7.x-1.x-dev (2011-May-11)

Comments

iNade’s picture

[bug : I am not the author of the first post, and did not revised it neither.]

It seems that you should load node object before (for example via another new condition : "node type"), then your node:field-XXX will be available.

However it doesn't work neither this way, so subscribing too. I have the last entity (beta10) and rules (beta2) modules.

Ptitoine, you can probably do the thing you want with hook_nodeapi.

iNade’s picture

Category: support » bug
Priority: Normal » Major
klausi’s picture

Component: Rules Engine » Documentation
Category: bug » support
Status: Active » Postponed (maintainer needs more info)

No, you don't need to load the node object, as it is passed by the event. And you make use of it in the first condition. Have you done this:

On the resulting page click "Add a condition" and select "Content has type".

If so, then the field should be available for data comparison.

iNade’s picture

Status: Postponed (maintainer needs more info) » Active

Yes, I've done this already, but it seems this bug only happen with multivalues select list (it works has expected with radio or whatsoever).

Do you need any more clues on my settings?

klausi’s picture

Status: Active » Postponed (maintainer needs more info)

Why do you have a multi valued select list? The number of values should be 1 (for the tutorial).

dasjo’s picture

Priority: Major » Normal
mitchell’s picture

Title: Editorial workflow » Clarify editorial workflow
Category: support » bug
Status: Postponed (maintainer needs more info) » Needs work

>> The number of values should be 1 (for the tutorial).

>> On the resulting page click "Add a condition" and select "Content has type".

>> It seems that you should load node object before (for example via another new condition : "node type"), then your node:field-XXX will be available.
....No, you don't need to load the node object, as it is passed by the event. And you make use of it in the first condition.

mitchell’s picture

Category: bug » task
Status: Needs work » Fixed

The changes I thought were necessary from reading the above are in:
http://drupal.org/node/1027546/revisions/view/1479876/2028128

If any further changes are necessary, please open a new task. If any further support is required with the described steps, please open a new issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.