# Make token simulation programmatically

**URL:** <https://forum.bpmn.io/t/make-token-simulation-programmatically/13982>\
**Category:** Developers\
**Created:** [November 5, 2024, 8:24am UTC](https://forum.bpmn.io/t/make-token-simulation-programmatically/13982 "2024-11-05T08:24:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![heinn\_thu](https://forum.bpmn.io/user_avatar/forum.bpmn.io/heinn_thu/32/5493_2.png) [@heinn\_thu](https://forum.bpmn.io/u/heinn_thu)\
**Post date:** [November 5, 2024, 8:24am UTC](https://forum.bpmn.io/t/make-token-simulation-programmatically/13982/1 "2024-11-05T08:24:23Z")

</div>

![image](https://forum.bpmn.io/uploads/default/original/2X/2/2b2ac13173ad3e9a3d80a6cb2ce431f4f4cc250c.png)

I’m trying to move the token pointer programmatically (following this =\> [token simulation example](https://codesandbox.io/p/sandbox/amazing-christian-ry9yw?file=%2Fsrc%2Findex.js)).  
What I want to do is I just want trigger the element from “Select Interaction” shape to “Condition A” shape. But when I trigger , pointer is also move to “Condition B”. I don’t want to show the second pointer. How can I do it ,please?

---

<div class="post-metadata">

**Author:** ![philippfromme](https://forum.bpmn.io/user_avatar/forum.bpmn.io/philippfromme/32/2803_2.png) [@philippfromme](https://forum.bpmn.io/u/philippfromme)\
**Post date:** [November 5, 2024, 12:30pm UTC](https://forum.bpmn.io/t/make-token-simulation-programmatically/13982/2 "2024-11-05T12:30:06Z")

</div>

> [@How does simulator methods of BPMN Token stimulation works?](https://forum.bpmn.io/t/how-does-simulator-methods-of-bpmn-token-stimulation-works/8983/8):
>
> TLDR: Learn how the [Simulator](https://github.com/bpmn-io/bpmn-js-token-simulation/blob/main/lib/simulator/Simulator.js) API works, and you’ll be able to use it, at your own risk. Consider to instead use [SimulationSupport](https://github.com/bpmn-io/bpmn-js-token-simulation/blob/main/lib/simulation-support/SimulationSupport.js) instead. Detailed write-up: warning The [Simulator](https://github.com/bpmn-io/bpmn-js-token-simulation/blob/main/lib/simulator/Simulator.js) is a low level utility. Use it at your own risk. information_source [SimulationSupport](https://github.com/bpmn-io/bpmn-js-token-simulation/blob/main/lib/simulation-support/SimulationSupport.js) is a high-level utility to drive forward the simulation, and hides details that are not relevant to the average user. The [Simulator](https://github.com/bpmn-io/bpmn-js-token-simulation/blob/main/lib/simulator/Simulator.js) offers [plenty of APIs](https://github.com/bpmn-io/bpmn-js-token-simulation/blob/main/lib/simulator/Simulator.js#L836-L869) to inspect the current run-time state, but also drive the simulati…

---

<div class="post-metadata">

**Author:** ![system](https://forum.bpmn.io/uploads/default/original/2X/b/b534893973385c2d302b38572464112e4adae002.png) [@system](https://forum.bpmn.io/u/system)\
**Post date:** [November 20, 2024, 6:53am UTC](https://forum.bpmn.io/t/make-token-simulation-programmatically/13982/3 "2024-11-20T06:53:16Z")

</div>

Closed on November 20, 2024, 6:53am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
