Workflow transition “stuck”, missing field changes by Suitelets

I’m creating a workflow which is intended to do the following:

On new Order Confirmation create, check some fields and move to state “Waiting for Pending Billing”.

When the Status of the OC changes to Pending Billing, proceed to the next state in the workflow (calls a custom script to make a Customer Deposit). This is done with the state trigger On Entry with condition “Document Status = Pending Billing”.

The workflow triggers as expected and OCs in Pending Fulfillment status show the Workflow is active in “Waiting on Pending Billing” state.

The problem: the Order Confirmation changes Status to Pending Billing via RESTLet calls from a third party fulfillment service. The System Notes plainly show that the Status is changed from Pending Fulfillment to Pending BIlling. But the workflow stays in “Waiting on Pending Billing” state, stuck.

Any thoughts on why an OC could be updated via a Suitelet and a workflow would “miss” it?

Rookie Asked on July 29, 2020 in SuiteFlow.
Add Comment
3 Answer(s)

I’d start by checking the execution contexts.

Also, does it work if you make the change through the UI?

Intermediate Answered on July 29, 2020.
Add Comment

UI changes do work as expected, so I know the workflow sees the right Status field at least and is still running.

As for contexts: I’ve selected all contexts just in case. Still no response.

Rookie Answered on July 29, 2020.
Add Comment

I seem to think that On Entry might not be triggered server side. It’s worth a check and I’d also enable logging at this stage to have a look how the workflow is being evaluated.

Let me know how you get on and if you’re still struggling, please share a few screenshots to help understand in more detail.

Thanks,

Chris

Intermediate Answered on July 29, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor