Hi All, I have 2 workflow states with 2 different...
# suiteflow
s
Hi All, I have 2 workflow states with 2 different transitions between them, both on after record submit. Currently, it loops between these 2 states and I got an error saying "workflow execution usage limit exceeded." I added a workflow checkbox field as a filter but that didn't help. I'd want the transitions to still be on after record submit, is there a way to prevent a loop between these transitions?
e
How do you stop after reaching the second state? Do you have
DO NOT EXIT WORKFLOW
?
s
I originally had a condition that if workflow checkbox field A = T then transition. If A = F, then don't but that didn't work. No, I don't have DO NOT EXIT WORKFLOW checked since they aren't the last state in the wf.
m
What is the condtion of the transition from state 1 into state 2
And separately what is the transition from state 2 back to state 1?
Without knowing more I think you need to uncheck checkbox field A when you re enter state 1 so it starts as false then gets checked after submit
e
Do you have a Start State, then a condition to Start > State A... And another condition from the same Start > State B? Or is the transition between Start > State A > State B? The UI diagram of the Workflow would be helpful to understand the relationship between states.
s
This is what I have. I have State 1 which is above State 2. I want to move the record from State 2 & 3 on after rec submit. I have a workflow checkbox field (let's call 'checkfld'). These are my conditions so far but they're not working as intended: State 2: set checkfld = F Transition from State 2 to State 3: on after rec submit, transition if checkfld = F State 3: set checkfld = T Transition from State 3 to State 2: on after rec submit, transition if checkfld = T
e
After the WF returns to State 2... What is preventing that
checkfld
is set again as F? Because if as soon as the WF enters State 2 you set again the field as F, the condition is met to go again to State 3.
s
That's what I'm trying to figure out haha
m
Your logic is creating a circular reference, there is nothing stopping it from transitioning between states as you are setting the checkbox to meet the transition criteria each time
What action/condition needs to be taken for the record to move to state 3? A user edits the record? Another field has a specific value?
There must be some other critiera that would need to be met to trigger the system into state 3
For example, the record transistions to State 2...., then when a user edits the record and saves it it should transition to state 3...something like that?
s
It's kinda difficult to say which field the user would edit since it's an open Suitelet form. They basically have access to edit any field so I can't use that as one of the conditions.
Is there anything else I can use as a flag?
m
So it should transition on Any edit?
What is the point of the 2 states if the record just freely transitions between them with no criteria for when to move to which state? There must be some action being performed in each state to make them unique??
s
I was trying to find out if there's a way the system can flag each submission (from the system's point of view) to fit the business' idea but I guess there's no way around it.
m
I'm still confused as to what you are trying to achieve, however, it sounds like you want to transition between states when a record is changed. In this case you would set the Transition from State 2 > State 3 to occur After Record Submit< Likewise the transition from State 3 > State 2 should occur After Record submit. This should stop your record from a circular logic of constant transitions
Also if you could share the actions within each state (State 2 and State3) that would help me understand more of what you are trying to accomplish
s
We were able to find a way, thank you for your help!