Hi,
************************************* Working scenario ********************************************
We have our custom functionality to publish the content item using the custom work flow in the project view. We will select the content item in the project view and when we click on "Publish Content", it will publish using the custom workflow.
We have configured using the "Type Specification Registry". It will call a "startCCGWorkflow.jsp" of our custom webapp "cms-aid-0729".
Configuration Console > Content (P) > Management Services > Management Console > Service Provider Framework > Type Specification Registry > Customer Extension Type Specification Registry > Content Instance
<button
image-location="/AppConsole"
image-url="/common/images/toolbar/publish.gif"
rollover-image-url="/common/images/toolbar/publish_on.gif"
disabled-image-url="/common/images/toolbar/publish_disabled.gif"
text-label="Publish Content"
location="/cms-aid-0729"
action="/secure/workflow/startCCGWorkflow.jsp"
show-confirmation="false"
refresh-main-window="false"
min-selection-required="1"
max-selection-required="1">
<target-window name="Publish Content"
width="500"
height="300"
resizable="true"
modal="false"/>
<required-capability>VCM:CONTENT_INSTANCE_READ</required-capability>
<required-capability>VCM:MANAGE_WF_PROCESS</required-capability>
<required-capability>CCG:TEAM_MEMBER</required-capability>
</button>
*****************************************************************************************************
New requirement
********************
Now we would like to have the same functionality with a new button in the content instance page. This button need to call our custom workflow for publishing. For this we have followed the following steps.
1) Added a new button using Configuration Console > Content (P) > Management Services > Management Console > Service Provider Framework > View Template Registry > Customer Extension View Template Registry > Default Buttons for ContentInstance
<component
name="Custom Publish">
<button
image-url="/AppConsole"
text-label="Custom Publish"
//action="${com.vignette.as.ui.spf.SpfMsg.TXT_LBL_CMD_CLS_PUBLISH}"
action="??????????????????????????????"
show-confirmation="false"
refresh-main-window="false">
<target-window name="Custom Publish"
width="500"
height="300"
resizable="true"
modal="false"/>
</button>
</component>
2) Now we need to modify the "action" to call our custom workflow using the new button of content instance. Can we call the same jsp here also? or Do we need to write any other class?
Please find the attached screenshots.
Any assistance on this will be much appreciated.
Thanks & Regards,
Raju Dachepally