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 | String Required. The application package function name. |
packageName | String Required. The function package name. |
trigger | String Required. The function trigger. |
template | String Required. The function type. |
clientCode | String Required. The application package organization client code. |
dir | String Required. 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