tasklets Element
Contains individual tasklet definitions. A tasklet definition is used to create an instance of a tasklet when it is called in an orchestration. You can define tasklets globally, which means the tasklet definition can be called from any orchestration. You can also define tasklets locally on an orchestration, which means the tasklet definition can only be called from that particular orchestration.
<tasklets>
<tasklet>…</tasklet>
<tasklet>…</tasklet>
</tasklets>
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
| Element | Description |
|---|---|
|
Defines a tasklet for use in the application. |
Parent Elements
| Element | Description |
|---|---|
|
Defines an orchestration to control the interaction between one or more tasklets. When the | |
|
Root element for the schema. When the |
The following example demonstrates how to use the <tasklets> element in a three-tasklet orchestration for showing customer details:
-
CustomerDetailTaskletdisplays information about a customer. -
CustomerContactDetailTaskletdisplays information about the customer's contact person. -
CustomerCreditLimitDetailTaskletdisplays the customer's credit limit.
<orchestration text="Customer detail" name="CustomerDetailEdit">
<tasklets>
<tasklet name="CustomerDetailTasklet" text="Customer Details" type="CustomerDetailTasklet.CustomerDetailTasklet, CustomerDetailTasklet">
<actions>
<open text="Contact" priority="40" tasklet="CustomerContactDetailTasklet">
<inputMappings>
<inputMapping propertyName="CustomerId" stateKey="CustomerID"/>
</inputMappings>
</open>
<open text="CreditLimit" priority="40" tasklet="CustomerCreditLimitDetailTasklet">
<inputMappings>
<inputMapping propertyName="CustomerId" stateKey="CustomerID"/>
</inputMappings>
</open>
</actions>
</tasklet>
<tasklet name="CustomerContactDetailTasklet" text="Contact Details" type="CustomerContactDetailTasklet.CustomerContactDetailTasklet, CustomerContactDetailTasklet">
</tasklet>
<tasklet name="CustomerCreditLimitDetailTasklet" text="Credit Limit" type="CustomerCreditLimitDetailTasklet.CustomerCreditLimitDetailTasklet, CustomerCreditLimitDetailTasklet">
</tasklet>
</tasklets>
</orchestration>
Reference
orchestrations Elementtasklet Element
userRole Element
Concepts
UserRole Schema Hierarchy StructureDefining Orchestrations in the UserRole
Defining Tasklets
Developing Mobile Application Solutions and Tasklets
Other Resources
Mobile UserRole Schema ReferenceMobile Orchestration
How to: Build a Mobile Application Using Orchestration
Working with Actions for Soft Keys and Menu Items
Developing Tasklets