Action

     Actions are equivalent to methods and functions and are one of the most basic models.

    When using dynamic standalone development of applications, the entry model is usually xworker.lang.ActionThing. For example, in the video below, Groovy is used to print HelloWorld on the screen.

HelloWorld.dml

<?xml version='1.0' encoding='utf-8'?>

<ActionThing name="HelloWorld" descriptors="xworker.lang.ActionThing">
    <GroovyAction name="GroovyAction" descriptors="xworker.groovy.GroovyAction" code="println &quot;Hello world!&quot;;"/>
</ActionThing>

 

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号