cancel
Showing results for 
Search instead for 
Did you mean: 

deploying a simple workflow

darklord
Champ in-the-making
Champ in-the-making
hi folks,

            i have downloaded code from HEAD and its release 3.2 as version.properties says.
            i have created a simple HelloWorld workflow and pasted it in   WEB-INF/classes/alfresco/extension/workflows/HelloWorld/processdefinition.xml.
            started the tomcat and hit the url "http://localhost:8080/alfresco/faces/jsp/admin/workflow-console.jsp".
            write the command deploy alfresco|extension|workflows|HelloWorld|processdefinition.xml and press submit.
            it gives following error

             Last command: help
             Duration: 7ms
             —–
              org.alfresco.error.AlfrescoRuntimeException: 04220007 Exception in Transaction.

            
             my processdefinition.xml looks like this..

<?xml version="1.0" encoding="UTF-8"?>
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="helloWorld">
   <start-state name="start">
      <transition name="" to="hello"></transition>
   </start-state>
   <node name="hello">
      <transition name="" to="end1">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
            <script>logger.log("Hello World!");</script>
         </action>
      </transition>
   </node>
   <end-state name="end1"></end-state>
</process-definition>


any clues whats going wrong
3 REPLIES 3

ntanchik
Champ in-the-making
Champ in-the-making
try
deploy alfresco/extension/workflows/HelloWorld/processdefinition.xml

jodorovski
Champ in-the-making
Champ in-the-making
You have to update the following line in your log4j.properties file: log4j.logger.org.alfresco.repo.jscript.ScriptLogger=DEBUG #warn
This will log it in alfresco.log

ntanchik
Champ in-the-making
Champ in-the-making
You have to update the following line in your log4j.properties file: log4j.logger.org.alfresco.repo.jscript.ScriptLogger=DEBUG #warn
This will log it in alfresco.log

Thanks.
It works, It works.