Unable to start workflow with email notification checkbox checked after replacing wf-email.ftl.html

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
raghav_bhardwaj
Active Member

Unable to start workflow with email notification checkbox checked after replacing wf-email.ftl.html

Unable to start workflow with email notification checkbox checked after replacing wf-email.html.ftl(I deleted this file and uploaded it back with some changes).Please help me to resolve this issue


Error  08030016 Failed to start workflow activiti$activitiAdhoc:1:4.


regards

Raghav Bhardwaj
6 Replies
darkredd
Active Member II

Re: Unable to start workflow with email notification checkbox checked after replacing wf-email.ftl.html

You probably removed some of the properties in the template that are used by the email action in the workflow. Which would suggest that the "ignore_failure" parameter of the action is set to true. Compare the two files and see if you did not change some of the properties the email action depends on. But that is a very vague error, unless if you changed the workflow itself too.
raghav_bhardwaj
Active Member

Re: Unable to start workflow with email notification checkbox checked after replacing wf-email.ftl.html

Hi thanks for you reply,

No i have not remove any properties from email templates iam even facing this problem only if i delete and upload wf-email-html.ftl or even make a new version of it. Please guide me right troubleshooting steps to solve this problem
villdre
Active Member II

Re: Unable to start workflow with email notification checkbox checked after replacing wf-email.ftl.html

It looks like upon deleting the wf-email.html.ftl file, and uploading a new one, the noderef changes. This breaks some hard-coded links inside alfresco. Any body have an idea on how to get the Workflows to use the email template with a new noderef?
sujaypillai
Active Member II

Re: Unable to start workflow with email notification checkbox checked after replacing wf-email.ftl.html

Hi Raghav,

Try this option:
1. Rename the folder Repository> Data Dictionary> Email Templates> Workflow Notification to Workflow Notification1 (something to a different name)
2. Stop the alfresco instance
3. Create a file my-patch-services-context.xml under tomcat/shared/classes/alfresco/extension
4. This patch would try to create the folder - Repository> Data Dictionary> Email Templates> Workflow Notification and all files under it. 
5. Restart the alfresco instance and look into the logs for something similar as -

2015-09-09 01:57:02,459  INFO  [admin.patch.PatchExecuter] [localhost-startStop-1] Checking for patches to apply …
2015-09-09 01:57:02,638  INFO  [admin.patch.PatchExecuter] [localhost-startStop-1] Applying patch 'patch.my' (null).
2015-09-09 01:57:03,237  WARN  [admin.patch.PatchExecuter] [localhost-startStop-1] Patch description is not available: Patch[ id=patch.my, description=MY Patch, fixesFromSchema=0, fixesToSchema=8022, targetSchema=9000, ignored=false]
2015-09-09 01:57:03,244  INFO  [admin.patch.PatchExecuter] [localhost-startStop-1]
=== Applied patch                 ===
ID: patch.ev
RESULT:
Imported view into bootstrap location: /app:company_home/app:dictionary/app:email_templates (workspace://SpacesStore/31d6c4ca-f206-4886-b497-c4e5a3dbc214)
=====================================

<strong>my-patch-services-context.xml</strong>

   <bean id="patch.my.workflowNotification" class="com.eisenvault.repo.admin.patch.impl.GenericBootstrapPatch" parent="basePatch" >
        <property name="id"><value>patch.my</value></property>
        <property name="description"><value>MY Patch</value></property>
        <property name="fixesFromSchema"><value>0</value></property>
        <property name="fixesToSchema"><value>8022</value></property>
        <property name="targetSchema"><value>9000</value></property>
        <property name="dependsOn" >
            <list>
                <ref bean="patch.updateDmPermissions" />
                <ref bean="patch.emailTemplatesFolder" />
            </list>
        </property>
        <property name="importerBootstrap">
            <ref bean="spacesBootstrap" />
        </property>
        <property name="checkPath">
            <value>/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.email.childname}/${spaces.templates.email.workflowemailnotification.childname}</value>
        </property>
        <property name="bootstrapView">
            <props>
                <prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.email.childname}</prop>
                <prop key="location">alfresco/bootstrap/notification/workflow-email-notification.xml</prop>
                <prop key="messages">alfresco/messages/bootstrap-spaces</prop>
            </props>
        </property>
    </bean> 
raghav_bhardwaj
Active Member

Re: Unable to start workflow with email notification checkbox checked after replacing wf-email.ftl.html

Thanks sujay. It worked great


cheers

Raghav Bhardwaj
alekseybykov
Established Member II

Re: Unable to start workflow with email notification checkbox checked after replacing wf-email.ftl.html

Have the same problem. Does anyone know, how to solve it?