app-scaffold-func
The app-scaffold-func provides a function scaffolding task to create a new application package function.
When you run this task, you specify an application package name, function type and function trigger. The task creates a new service for you, and updates the application package project definition along with the form definition.
Task Attributes
All attributes are optional unless otherwise indicated.
| Attribute | Description | 
|---|---|
| name | StringRequired. The application package function name. | 
| packageName | StringRequired. The function package name. | 
| trigger | StringRequired. The function trigger. | 
| template | StringRequired. The function type. | 
| clientCode | StringRequired. The application package organization client code. | 
| dir | StringRequired. The target project directory to create and deploy files to. | 
Ant Example
The example Ant task below creates a function using the app-scaffold-func task.
<app-scaffold-func 
    template="Fluent Function"
    trigger="Form Update"
    name="TrackMeFunc"
    packageName="com.trackme"
    formCode="homeloan"
    clientCode="maguire"
    dir="src/trackme-app" />
Example Ant log output:
app-scaffold-func:
    [app-scaffold-func] Created new service: src/trackme-app/com/trackme
    [app-scaffold-func] Updated application package: src/trackme-app/com/trackme/app-package-def.json
    [app-scaffold-func] Updated form definition: src/trackme-app/com/trackme/forms/homeloan/form-def.json