Hi,
I've defined a Global transition named "X" associated to the window "WindowX". This window has 3 customfields "CF1", "CF2" and "CF3".
This global transition is defined as follows:
Name: X
Description:
Destination step: The source step
View: WindowX
I need to configure which customfield must be shown in WindowX depending on the status on which the transition is launched.
I've tried to configure Behaviour plugin in this way:
CF1 is associated to a validation script:
if(getActionName() == "X" && getDestinationStepName() != "En Entrega"){
getFieldByName("CF1").setHidden(false);
}
if(getActionName() == "X" && getDestinationStepName() == "En Entrega"){
getFieldByName("CF1").setHidden(true);
}
But, when I launch the action "X" from the "En Entrega" status (where the destination step is "En Entrega"), the customfield "CF1" isn't shown.
All help is welcome!!
Begoña
I'm not sure why you need to check the destination step name. If the action name is X, and it's a global action you know the destination step name. So you could check the current step name in conjunction with the action name.
That said, getDestStep uses the OSWorkflow API, so if it doesn't give you a destination step for a global action there's not much I can do.
I'll try to explain why I need to know the name of "Destination step": I've defined the Global Transition using the option "The source step" to define the value of the "Destination step" property. Is for this reason that I can launch this transition in every status in the flow, without changing the step (the source step=the destination step): To know the name of the action isn't enough for knowing the destination step because it depends on the step on which the action has been launched. Thanks Jamie, I'll find another solution for this scenario. Begoña
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> To know the name of the action isn't enough for knowing the destination step because it depends on the step on which the action has been launched. Yes, but what I said was "the action name AS WELL AS the current step name". From those two you can know the destination step... which for this action is the source step.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes you are rigth, if I don't use global transitons the problem is solved. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I didn't say not to use global transitions, but OK...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.