If you modify a workflow to add new nodes or new outcomes, or you change display names, you must update the solutionHistoryAction, solutionHistoryTasks, workflowStates and workflowOutcomes attributes of /atg/svc/publishing/service/
AgentPublishingService.properties
file and the appropriate /atg/svc/publishing/service/
Resource_
locale.properties file.

The default setting for the AgentPublishingService file is as follows. The new workflow state that should be added to your AgentPublishingService file in your customization directory, in this example, is the awaitVerification state, outlined in bold:

# right-side is a message key in
# atg.svc.publishing.service.Resources_<locale>.properties
solutionHistoryActions= \
       create=solutionHistoryAction.initiateWorkflow,\
       delete=solutionHistoryAction.initiateWorkflow,\
       disable=solutionHistoryAction.initiateWorkflow,\
       edit=solutionHistoryAction.initiateWorkflow,\
       merge=solutionHistoryAction.initiateWorkflow,\
       suggestchange=solutionHistoryAction.initiateWorkflow,\
       propose=solutionHistoryAction.initiateWorkflow,\
       solnstatus=solutionHistoryAction.initiateWorkflow

# right-side is a message key in
# atg.svc.publishing.service.Resources_<locale>.properties
solutionHistoryTasks=\
       create=solutionHistoryTask.createNewSolution,\
       delete=solutionHistoryTask.recommendSolutionForDelete,\
       disable=solutionHistoryTask.recommendSolutionForDisable,\
       edit=solutionHistoryTask.editSolution,\
       merge=solutionHistoryTask.mergeSolutions,\
       suggestchange=solutionHistoryTask.suggestChangeToSolution,\
       propose=solutionHistoryTask.proposeSolution,\
       solnstatus=solutionHistoryTask.changeSolutionStatus

# NOTE: key is workflow label display name (case sensitive) with spaces removed
# right-side is a message key in
# atg.svc.publishing.service.Resources_<locale>.properties
workflowStates=\
  ApproveandDisableSolution=workflowState.approveAndDisableSolution,\
  ApproveChange=workflowState.approveChange,\
  ApproveProposedSolution=workflowState.approveProposedSolution,\
  AwaitVerification=workflowState.awaitVerification,\
  ContentReview=workflowState.contentReview,\
  CreateSolution=workflowState.createSolution,\
  MergeSolutions=workflowState.mergeSolutions,\
  ModifySolution=workflowState.modifySolution,\
  PrepareProposal=workflowState.prepareProposal,\
  PublishExternal=workflowState.publishExternal,\
  PublishInternal=workflowState.publishInternal,\
  StyleReview=workflowState.styleReview

# NOTE: key is workflow outcome display name (case sensitive) with spaces removed
# right-side is a message key in
# atg.svc.publishing.service.Resources_<locale>.properties
workflowOutcomes=\
  ApproveChange=workflowOutcome.approveChange,\
  ApproveProposedSolution=workflowOutcome.approveProposedSolution,\
  Disable=workflowOutcome.disable,\
  PublishExternal=workflowOutcome.publishExternal,\
  PublishInternal=workflowOutcome.publishInternal,\
  Reject=workflowOutcome.reject,\
  Rejectchanges=workflowOutcome.rejectChanges,\
  RejecttoContentReview=workflowOutcome.rejectToContentReview,\
  RejectProposedSolution=workflowOutcome.rejectProposedSolution,\
  RejectToDraft=workflowOutcome.rejectToDraft,\
  SendforRework=workflowOutcome.sendForRework,\
  SubmitforReview=workflowOutcome.submitForReview,\
  SubmitforStyleReview=workflowOutcome.submitForStyleReview,\
  SubmitProposal=workflowOutcome.submitProposal,\
  Check-in=workflowOutcome.checkin

Once the new node, state or description has been added to the AgentPublishingService file, add the corresponding item to the Resources file in your customization directory, for example:

# Solution workflow states displayed in solution history tasks
workflowState.approveAndDisableSolution=Approve and Disable Solution
workflowState.approveChange=Approve Change
workflowState.approveProposedSolution=Approve Proposed Solution
workflowState.awaitVerification=Await Verification
workflowState.contentReview=Content Review
workflowState.createSolution=Create Solution
workflowState.mergeSolutions=Merge Solutions
workflowState.modifySolution=Modify Solution
workflowState.prepareProposal=Prepare Proposal
workflowState.publishExternal=Publish External
workflowState.publishInternal=Publish Internal
workflowState.styleReview=Style Review

Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved. Legal Notices