-1

I’m trying to build a showcase for a business activity monitoring (BAM) tool. In my showcase the BAM tool is fed via a soap api with events. Now I’m looking for an event simulation tool like arena which is able to trigger my soap api every time an event went through a simulation step in the event simulation tool. Any help is appreciated!

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Hoppo
  • 11
  • 3
  • You should check out the help section. Pay particular note to item #4 in the section about [off-topic questions](http://stackoverflow.com/help/on-topic). – pjs Nov 13 '16 at 16:58

1 Answers1

0

I found a solution for my problem. It's possible to include VBA bricks in arena:

Step1: Activate VBA blocks in Arena

Open "Basic Process" then right click on Create. Go to Template Panel and click on Attach. Then select Blocks.tpoand open.


Step2: Process ID

Add an ID Attribute as well as a StartID as a Variable. Than you can use the following VBA code to assign an incrementing ID to all entities. To do that just add the following VBA code as a brick behind your Create brick (see here).

'Assign ID Attribute to Entity
Private Sub VBA_Block_2_Fire()
   Dim s As SIMAN
   Set s = ThisDocument.Model.SIMAN
   Dim NewCounter As smDataType
   Dim CurCounter As smDataType

   CurCounter = s.VariableValue(s.SymbolNumber("IDStart"), 0, 0)
   NewCounter = CurCounter + 1

   s.SetVariableArrayValue s.SymbolNumber("IDStart"), NewCounter
   s.EntityAttribute(s.ActiveEntity, s.SymbolNumber("ID")) =       NewCounter

End Sub

3 Step: Add the SOAP API as VBA brick behind each Process brick

Then add another VBA brick after every process brick. This VBA brick then contains a SOAP call. I found this page useful to build a SOAP service in VBA. Before you can do that, you have to activate Microsoft XML, 6.0 in VBA under Tools --> References

Hoppo
  • 11
  • 3