Trigger Workflow from inside a html-Element

Hello,

i want to build an ul-list and do this with an html-element.
Evere bullet-point should trigger a workflow (it could be the same workflow, if i can give a specific parameter with the clicking on the bullet pont.)

the ai makes me something, but it didnt run…

the code from the ai is:

<ul>
  <li onclick="wwEvents.trigger('custom', { type: 'scroll', parameter: 'can i giv here a special parameter to the workflow?' })" style="cursor: pointer;">
    Erster Listenpunkt (Click to scroll)
  </li>
</ul>

i build a workflow called “test” with the trigger “on scroll” but it didnt fire. nothing happened if i click on the bullet point.

has someone an idea how to do this?
thanks for help!
stefan

Ok, i found it out…

very helpfull ist this topic:

my code is now:

<li onclick="wwLib.wwWorkflow.executeGlobal('idoftheworkflow',{'parameter1':'testidstefan'})" style="cursor: pointer;">
    Erster Listenpunkt (Click to scroll)
  </li>

i am happy.