This blog show cases how to create customized workflow in ATG 10.2. In some case we need to create new customized workflow to meet the required customization. The blog provide the step to create a customized workflow.
Step to create new workflow
Create Workflow *.wdl file
- Open the ACC of BCC server and go to Workflow >> Publishing
- Default you will have Common folder which contains default workflow (commonWorkflow.wdl)
- You can create new workflow in the same folder, if you want the new workflow should be available for editing all the asset (Catalog, Content and Site Asset). Or create in Commerce (Catalog Asset), siteTemplates (Site Asset), Personalization (Personalization Asset).
- Create the workflow and save it
- After restart of BCC the newly created workflow will be available.
- We can create project using this workflow, but will not have normal BCC UI, BCC show error message saying application Id not not found for the project.
- We have to modify 2 xml for registering the application ID for the workflow namely (/atg/commerce/web/workflowActivities.xml, /atg/remote/controlcenter/service/merchandising.xml)
Create WorkflowActivites.xml
- We have to add the entry in the workflowActivities.xml for creating a activity for the new workflow.
- In workflowActivities.xml mention activity Id, which should be unique id (i.e.
merchandising.newWorkFlowId ) - Provide the
name of the newly created workflow, which should be full path inside the /atg/registry/data/epubworkflows/ (it will be like /Commerce/newWorkFlow.wdl). Same will be mentioned in wdl file of the workflow /Commerce/newWorkFlow.wdl - create a Resources bundle file to provide the displayName and description, which has be added in workflowActivities.xml file
- Provide displayName key in the displayName
- Provide description key in the description
- Provide warning key in the
warning , warning message is show when user click on the link to create project. - you can add the
in the activity, to add the browse option in your workflow as it show in front of Commerce Asset - URL in page-2 tag should be
/ControlCenter/index.jsp . This is the jsp which is loaded on clicking on browse URL. - Activity-id in page-2 tag will be like merchandising.browseCommerceAssets.
Create merchandising.xml
- We have to add the entry in the merchandising.xml for creating a application for the new workflow.
- Provide the same name as of the activity Id for create the application tag.
- Provide the resource bundle Resources
- Provide the displayName key which is in Resource Bundle displayName
- Provide the
name of the newly created workflow, which should be full path inside the /atg/registry/data/epubworkflows/ (it will be like /Commerce/newWorkFlow.wdl). Same will be mentioned in wdl file of the workflow /Commerce/newWorkFlow.wdl in the Tag - Provide
- Please find the attached file to see more in details.
Above step will create new workflow, will be able to create project and edit asset using the BCC UI.
Very informative and helpful information Pradeep. good work.
ReplyDeleteReally Helpful blog Pradeep, as a quick reference for BCC developers.
ReplyDeletevey helpful,simple and crip
ReplyDeleteCool
ReplyDeleteis there anyway wherein we can create new workflow without ACC?
ReplyDeleteHi,
ReplyDeleteI have created my new workflow, but now there are 4 options( 2 options under commerce Merchandising,1 under site administration, 1 under content administration) for creating project. Among these 3 options are to create project with the new workflow and one old option to create project with common workflow. Can you please tell me why i am seeing 3 additional options for creating projects. Also 2 options under commerce merchandising are not working, its throwing error application id not found even after creating workflowActivities.xml and contentmgmt.xmls in the place.
0lincmagPgast-do Brody Fokused https://wakelet.com/wake/H-NPKlSiRG8pHnHTVkP5R
ReplyDeletegritapbrownez
Otemplecdiazo_Scottsdale Zach Kingery Norton Security
ReplyDeleteWebsite
Microsoft Visio Professional
menwhiwichpe
consniYsorba Dave Hundley Click here
ReplyDeleteLink
growlaytouchsders
Great and that i have a keen proposal: Is It Good To Buy Old House And Renovate victorian house renovation
ReplyDelete