Quantcast
Channel: Bizagi Community | Bizagi Suite
Viewing all articles
Browse latest Browse all 1543

Get process status from process entity

$
0
0
Given the business need, to launch a case, we need to know if there is any other previously created case whose code is different from a status list. To get all cases https://help.bizagi.com/bpm-suite/en/index.html?access_entities_not_related_to.htm var casesPending = Me.getXPath("entity-list('entity','iState.sCode!=@finalized AND CreatUser.Id=@UserId')",parameters); In this way we would obtain all the user's cases with a state prior to completion, so that in case there is one in process (within the states we want), we will not create a new one. But we have found cases in which, even though they are in a code other than finished, they cannot advance because their status in bizagi is canceled (View img Canceled.png) For this reason, in our query we would also need to filter by bizagi case status: https://kb.bizagi.com/Knowledgebase/Process-States From this, to be able to obtain the ProcessState attribute and know if the case can advance or not https://help.bizagi.com/bpm-suite/en/index.html?case.htm But for this we need to obtain the id of the case or to be able to filter it in the first casesPending query. https://help.bizagi.com/bpm-suite/es/index.html?getcasebyid.htm#getCaseById The query returns all the cases (Whose id we can obtain is that of the entity and not that of the case itself) and we cannot filter them by the status of the bizagi case. How can we obtain in this way all the cases whose status in bizagi is Initiated or Running?

Viewing all articles
Browse latest Browse all 1543

Trending Articles