AnsweredAssumed Answered

JavaScript function inside workflow action

Question asked by chicco0386 on Sep 23, 2010
Latest reply on Sep 23, 2010 by chicco0386
Hi all,
I'm looking how to define and insert javascript function inside a workflow.
For example

<node name="Genera template documenti">
        <action class="it.mytria.tria.wf.action.GeneraTemplate"></action>
        <event type="node-enter">
            <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
                <runas>admin</runas>
                <script>
                    ———–Function/s———-
                </script>
            </action>
        </event>
        <transition to="End"></transition>
    </node>


It's possible?
How can I do this?

I hope that this solution it's possible, beacuse it make the code more simply and reusable.

I attend yours responses?
THANK YOU

Outcomes