Skip to main content

Hints for Workflow development for new modules in MSD axapta

Hints for Workflow development for new modules in axapta

creating workflows require creating / modifying following workflow artifacts:

Workflow Categories
 Workflow Templates
Workflow Documents
Tasks
Approvals

Workflow Categories
To create new workflow categories follow the procedure below:
1. Open AOT
2. Expand the Workflow node
3. Right-click on the Workflow Category node and select New Workflow Category.
4. A new workflow category called WorkflowCategory1 will be created.
5. Right-click on the newly created workflow category and select Properties and set required properties.

Property
Description Name A unique name for the category
Label
A meaningful label for the category Ex: Purchase order Help Text Description about the category
Module
The module to which the category is applicable

Workflow Templates

Follow the procedure below to create a new workflow template:
1. Open the AOT
2. Expand the Workflow node
3. Right-click on the Workflow Templates node and select New Workflow Template
4. A new workflow template named WorkflowTemplate1 will be created
5. Right-click on the newly created workflow template and select Properties
6. Set the properties Name property to Sales-approval

Workflow Documents
Do the following:
Create a Query
1. Open the AOT
2. Right-click on the Query node and select New Query
3. Rename the query to PurchOrderDocument
4. Expand the Data Sources node in the newly created query
5. Right-click and select New Data Source
6.Next expand the salestable data source and right-click on the Data Sources node inside the saletable data source
7. Select New Data Source and set the  Properties
8.Next expand the SalesLine data source and right-click on the Data Sources node inside the SalesLine data source
 

Task

Tasks are the most generic workflow elements. Tasks provide application specific behavior that you define in the AOT. Each task supports a single unit of work that is defined by one step. This means a workflow task can have only one step. A task does not have a fixed outcome. However, you can add any number of custom outcomes to the task, such as Completed or Skipped.
Each task must have at least one outcome of type Complete and an action menu item for the task work item button to display in the user interface.

This procedure describes how to create a new workflow task:
1. In the AOT, expand the Workflow node
2. Right-click the Tasks node and then select New Task. A new workflow task group displays under the Tasks node
3. Right-click the new workflow task and then click Properties
4. In the Properties sheet, set the properties as required


Approval

Workflow Approvals
Approvals are the specialized type of tasks. The main difference between tasks and approvals is that tasks can have only single step of work but approvals can have multiple steps and sub-workflows as well.
Approvals are specialized workflow elements designed to support approval scenarios. Approvals have a set of fixed outcomes that the workflow supports. These outcomes are as follows:
Approve - Outcome type Complete.
 Reject - Outcome type Return to the originator of the workflow.
RequestChange - Outcome type
ChangeRequested from the originator or another person in the workflow process.
Deny - Outcome type Deny

This procedure describes how to create a new workflow approval:
1. In the AOT, expand the Workflow node
2. Right-click the Approvals node and then select New Approval. A new workflow approval group displays under the Approvals node
3. Right-click the new workflow approval and then click Properties
4. In the Properties sheet, set the properties as required

Popular posts from this blog

strScan and Find a first occurrence of a string in a string using x++

strScan (Find a first occurrence of a string in a string) info("int strScan(str _text1,str _text2,int _position,int _number)"); info("Searches a text string for the occurrence of another string."); info("_text1 - The text string to search."); info("_text2 - The string to find."); info("_position - The position at which the search should start."); info("_number - The number of characters that should be searched."); info(int2str(strScan("ABCDEFGHIJ","DE",1,10)));

Get record from table on the basis of field id in Microsoft dynamics axapta x++

How to Get record from table on the basis of field id in dynamics axapta x++. just try following code in job to understand better way. emplTable emplTable; FieldId fieldId; ; fieldId = fieldNum(emplTable, Emplid); select emplTable; info(emplTable.(fieldId)); select emplTable where emplTable.(fieldId) == '1101'; info(emplTable.Name);

Code to get customer Primary Address in Ax 2012

Below Code to get customer Primary Address in Ax 2012. CustTable custTable_P; DirPartyTable dirPartyTable_P; DirPartyLocation dirPartyLocation_P; DirPartyLocationRole dirPartyLocationRole_P; LogisticsLocation logisticsLocation_P; LogisticsLocationRole logisticsLocationRole_P; LogisticsPostalAddress logisticsPostalAddress_P; LogisticsPostalAddress primaryAddress_P; while select custTable_P where custTable_P.AccountNum =='ED_01029' join dirPartyTable_P where dirPartyTable_P.RecId == custTable_P.Party join dirPartyLocation_P where dirPartyLocation_P.Party == custTable_P.Party && dirPartyLocation_P.IsPrimary==NoYes::Yes join dirPartyLocationRole_P where dirPartyLocationRole_P.PartyLocation == dirPartyLocation_P.RecId join logisticsLocationRole_P where logisticsLocationRole_P.RecId == dirPartyLocationRole