Yo, so i started using apex workflow, and i came across a situation where a user can either reject, approve and send for recomputation for a given quotation. I first did it so that when the user rejects the quotation, the workflow goes back into recomputation, but the problem is what if they dont want recomputation and i want to just reject. So i checked everywhere and i got a solution and it works. What i did is i just changed a constraint that checks whether the outcome is ‘approved’ or ‘rejected’ so i just edited the outcome in the database so it could accept ‘recomput’ also(thats not a spelling error, the char length should be 8).
I feel like that should have been easier do, like in the task definition i could define different outcomes and i can use that workflow accordingly. Like accept/reject i understand cause like thats all we should need. But yknow the ability to customize would be really nice. Like i shouldnt really need to go and modify the constraint every time a new complex situation arises.
ok maybe this is kinda niche, what do my fellow devs think? please comment below