Author Topic: [BPSim] Resources are not consume and release for Main process and Sub Process  (Read 1346 times)

BPSimNovice

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Hi Everyone,

I want to develop a model based on resource consumption but the resource are not consumed properly for Main Process and Sub Process.

Expected Flow for the model:
1. For example, the model flow will start and the Token enter a Main Process (System A), this will consume 1 System A resource.
2. Inside System A, the Token will enter a subprocess (SP1), and this will also consume 1 SP1 resource.
3. When the Token leaves SP1, it will release back the 1 SP1 resource.
4. When the Token leaves System A, it will then release back the 1 System A resource.
5. Next, the Token will enter another Main Process (System B), this will consume 1 System B resource.
6. Inside System B, the Token will enter a subprocess (SP2), and this will also consume 1 SP2 resource.
7. When the Token leaves SP2, it will release back the 1 SP2 resource.
8. The Token will will enter another subprocess (SP3), and this will also consume 1 SP3 resource.
9. When the Token leaves SP3, it will release back the 1 SP3 resource.
10. The Token will will enter another subprocess (SP4), and this will also consume 1 SP4 resource.
11. When the Token leaves SP4, it will release back the 1 SP4 resource.
12. When the Token leaves System B, it will then release back the 1 System B resource.

The current problem with the model is that is does not consume the resource for Main Process.
Current Flow for the model:
1. For example, the model flow will start and the Token enter a Main Process (System A), model does not consume 1 System A resource.
2. Inside System A, the Token will enter a subprocess (SP1), and this will also consume 1 SP1 resource.
3. When the Token leaves SP1, it will release back the 1 SP1 resource.
4. When the Token leaves System A, as model does not consume 1 System A resource, it will not release it.
5. Next, the Token will enter another Main Process (System B), model does not consume 1 System B resource.
6. Inside System B, the Token will enter a subprocess (SP2), and this will also consume 1 SP2 resource.
7. When the Token leaves SP2, it will release back the 1 SP2 resource.
8. The Token will will enter another subprocess (SP3), and this will also consume 1 SP3 resource.
9. When the Token leaves SP3, it will release back the 1 SP3 resource.
10. The Token will will enter another subprocess (SP4), and this will also consume 1 SP4 resource.
11. When the Token leaves SP4, it will release back the 1 SP4 resource.
12. When the Token leaves System B, as model does not consume 1 System A resource, it will not release it.

Does anyone know how can i resolve it such that the main process will consume a resource and only release it after the Token leaves all the subprocess and leave the main process and then the resource will be release.

Or is there other modelling simulation that I can use for my use case.
Thank in advance!  :)

Sample diagram:
« Last Edit: July 28, 2023, 03:28:29 pm by BPSimNovice »