cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Workflow Amp file

cgonzalez
Champ on-the-rise
Champ on-the-rise
Hi,

I have succesfully add a custom workflow to alfresco. But now i want to add the same workflow using a amp file. The structure of the amp file is as follow:

/
–>/config
——>/alfresco
———–>/module
—————>/myModuleId
——————->/content
———————–>bootstrap-content.xml
——————->/workflow
———————–>myWorkflow_messages.properties
———————–>myWorkflow_processdefinition.xml
———————–>myWorkflow_workflowModel.xml
——————->module.content.xml
–>module.properties


The new module deploy good, but the workflow is not defined.

I have edited the bootstrap-content.xml as follow:

  <bean id="scs.workflowBootstrap" parent="workflowDeployer">
    <property name="workflowDefinitions">
      <list>
        <props>
          <prop key="engineId">jbpm</prop>
          <prop key="location">alfresco/module/myModuleId/workflow/myWorkflow_processdefinition.xml</prop>
          <prop key="mimetype">text/xml</prop>
          <prop key="redeploy">true</prop>
        </props>
      </list>
    </property>
    <property name="models">
      <list>
        <value>alfresco/module/myModuleId/workflow/myWorkflow_workflowModel.xml</value>
      </list>
    </property>
    <property name="labels">
      <list>
        <value>alfresco/module/myModuleId/workflow/workflowmodulename</value>
      </list>
    </property>
  </bean>

</beans>


The workflow files are the same that i have been using before, so they work fine. Should i edit any other files?

Anyone has any idea?

Thanks
2 REPLIES 2

janv
Employee
Employee
It should be "context" not "content" (for both the folder name and file name) …


——————->/context
———————–>bootstrap-context.xml
Regards,
Jan

cgonzalez
Champ on-the-rise
Champ on-the-rise
Sorry i misspell it. But in my amp file it's ok the name of both the folder and the file.