Contract:
[DataContractAttribute]
class TestContractClass
{str testParameter;
[DataMemberAttribute('Test Parameter')]
public str parmTestParameter(str _testParameter = testParameter)
{
testParameter = _testParameter;
return testParameter;}}
Service:
class TestService
{
public void process(TestContract _testContract)
{
// INSERT LOGIC HERE}}
Controller:
class TestController
{
protected void new()
{
super(classStr(TestService), methodStr(TestService, Process), SysOperationExecutionMode::Synchronous);}
public ClassDescription defaultCaption()
{
return "@ClassDescriptionLabel";}
public static void main(Args _args)
{
TestController controller = TestController::construct();
controller.parmArgs(_args);
controller.startOperation();}}
Action Menu Item:
Properties:
| Object Type | Class |
| Object | TestController |