process Element

Top  Previous  Next

process Element is used to configure a Process class that extends org.moremotion.process.Process or org.moremotion.process.QueryProcess base classes of MoreMotion.

  <process name="DeleteProductCommand">
    <class />
    <unitname />
    <debugLevel />
    <param name="myparam1">myparam1 value</param>
  </process> 

The name attribute of the processCommand element should contain the name of the Process Form that this command is located in and the name of the command itself using the notation processFormName.processCommandName.

Nested Elements

class

Defines the name of the process class that either extends org.moremotion.process.Process or org.moremotion.process.QueryProcess base classes.

unitname (Accepts MScript)

This element defines the resource bundle name of the process class. Resource bundles contain multi-lingual resources. See Resource Management.

debugLevel (Accepts MScript)

Process classes can be designed to print the log records about their execution in order to let the users to trace it. This parameter accepts a number value between 1 and 3 as the level of the logging.

param (Accepts MScript)

The parameters defined with param element are evaluated by the process classes. An process parameter can be given either with param element

   <process name="Delete">
    ...
    <param name="sql">delete from customers where id = @vof(ID)</param>
  </process>

or with custom element

   <process name="Delete">
    ...
    <sql>delete from customers where id = @vof(ID)</sql>
  </process>