Hi,
sorry for my horrible english.
on my drupal-6.4
mysql 5.0
PHP 5.1.6
workflow module 6.x-1.0-rc1

I have created a simple WorkFlow named "test"
added 3 state:
draft
rejected
approved

assigned the workflow to a content type "my testing content type"
assigned the perssion to the "creator" to change the workflow state from "created" to "draft"
assigned the perssion to the "moderator" (a personal Role) to change the workflow state from "draft" to "approved"
assigned the Triggers that, when "my testing content type" workflow change from draft to approved the "my testing content type" pubblishing option change to "pubblished"

ok, I was thinking that this can be a right configuration

then I create a "my testing content type"
then set the workflow state to "draft"
the a "moderator" (persona Role) change the workflow state from "draft" to "approved" but, the pubblishng status of "my testing content type" remains "unpublishd".

where I wrong?

Comments

tebb’s picture

Ciao Osiride,

What you did sounds OK to me ... and your English is OK too ;)

I am not an expert on triggers, actions and workflow in Drupal 6, but will be working on this in the next 2 weeks.

Do you still have the problem?

Can you give any more details?
Have you checked various logs?
Are your modules the latest versions?

If I see this thread updated I'll run the same tests myself.

Regards,

Dru-p

Osiride’s picture

Hi,
ok, I had resolved the problem.
the nonfunctional point is that when the module try to insert into the table "trigger_assignments" a value for the "op" field there isn't any controll (check?) on.
My type of content name is "AreeDiInterventoTematicheRelative" but the maximum lenght for the field "op" is 32 characters (varchar(32)).
then, when the module try to check if there is any role, the checking return always false.

I think (but when I programs, I made an overuse of test of the type and the dimension of the input data) that a checking on the value of the string that must be insertend into "op" and an "alert" if it is too long could be usefull.

anyway thanks for the help you trying to give to me (and for the patience)

tebb’s picture

"anyway thanks for the help ... and for the patience"
You are welcome. Glad you worked it out.

Nice debugging! Perhaps someone else will find the varchar(32) information helpful too.

Cheers, Dru-p

jvandyk’s picture

Status: Active » Closed (fixed)