Book a Demo

Author Topic: Workflow not working in EA 8  (Read 4027 times)

Krzysztof Swiatkowski

  • EA User
  • **
  • Posts: 76
  • Karma: +0/-0
  • Understanding is a three-edged sword
    • View Profile
Workflow not working in EA 8
« on: July 30, 2010, 06:56:52 am »
I tried to use workflow in EA8 but I ran into some problems with it. I wonder if anyone else had this problem too.
I enabled security, created users and groups and created workflow group and added a script for blocking tag editing.
But it didn't work. I removed all unnecessary code and ended up with those functions:
Code: [Select]
Public Function CanEditTag(TagName)
    CanEditTag = False
End Function
'--------------------------------------------
Public Function AllowTagUpdate(TagName, OldValue, NewValue)
    AllowTagUpdate = False
End Function
'--------------------------------------------
Public Function CanEditStatus()
    CanEditStatus = False
End Function
'--------------------------------------------
Public Function AllowStatusUpdate(OldValue, NewValue)
    AllowStatusUpdate = False
End Function
'--------------------------------------------
Public Function CanEditPhase()
    CanEditPhase = False
End Function
'--------------------------------------------
Public Function AllowPhaseUpdate(OldValue, NewValue)
    AllowPhaseUpdate = False
End Function
'--------------------------------------------
Public Function CanEditVersion()
    CanEditVersion = False
End Function
'--------------------------------------------
Public Function AllowVersionUpdate(OldValue, NewValue)
    AllowVersionUpdate = False
End Function
I don't think those functions can get much simpler :).
But the problem persist and runs deeper I think:
* Tag editing still works.
* Version, Phase and Status editing seems to be fine only at first glance. When I open properties window for a Class fields are greyed but only till I try to edit something, e.g. check abstract or add space to name. After they are not grey anymore I can change them which is strange as well because Allow*Update should prevent that.

Did workflow work for you?

Regards
Kris
If I put you finger in the eye
then you have finger in the eye
and I have finger in the eye
but it's not the same

Christian D.

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Workflow not working in EA 8
« Reply #1 on: August 16, 2010, 09:44:32 pm »
Hello,

I initially had the same behaviour as you reported (using the same script of course!).

To faciliate debugging I put a Session.Output ("...") statement in each function.

First, I had the message "VBScript Workflow Engine Created" in the "Output - Script" window. But no other output at all.

Then, I managed to make it work by clicking on the Group used for Workflow Scripts in the Scripting window and clicking on the "Refresh" icon.

The "Output - Script" window then displayed "my" messages in addition to the "VBScript Workflow Engine Created" message.

E.g. when I edit an element.

The functionality is very confusing but works as expected in the end:
1) The "protected" fields are initially grayed out
2) After editing any other field, the "disabled" gray disappears
3) The filed value can then be edited
4) But, the value is returned to initial value on "Apply"