Patent ID: 8453127

Claim:
A computer-implemented method, comprising: recognizing a token synchronization gateway in a graph-based business process model; identifying n upstream artifacts located upstream from the token synchronization gateway in the graph-based business process model, n being an integer; identifying a final artifact directly in front of the token synchronization gateway; and compiling, by a computer processor of a compiler engine, the token synchronization gateway into code to be executed at runtime to perform a synchronization process, the synchronization process including: handling tokens T 1 through T n to synchronize the n upstream artifacts, each token being associated with one of the n upstream artifacts, wherein said handling of the tokens comprises: indicating that the token synchronization gateway is done when all upstream tokens are completed as indicated by arrival at the final artifact, initializing a done Boolean variable, able to have either a first or second value, to the first value, maintaining a set S associated with tokens T 1 through Tn, determining that a token Tx has changed its position from a before artifact to an after artifact, determining that the after artifact is the final artifact and that the set S is empty, if done currently equals the first value, setting the done Boolean value to the second value and positioning Tx behind the token synchronization gateway, and if done currently equals the second value, deleting token Tx.