Skip to main content

Version: 22.10

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.

AttributeDescription
nameString

Required. The application package function name.

packageNameString

Required. The function package name.

triggerString

Required. The function trigger.

templateString

Required. The function type.

clientCodeString

Required. The application package organization client code.

dirString

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