Hi! I'm working with Alfresco Maven SDK, following the steps from here: https://ecmarchitect.com/alfresco-developer-series-tutorials/workflow/tutorial/tutorial.html#introdu...
I chose the last version of SDK.
I created this diagram:
<?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef"> <process id="helloWorld" name="Hello World" isExecutable="true"> <startEvent id="sid-4e762918-2c74-4b5d-a951-5c8623f76885" name="Start" activiti:formKey="scwf:submitHelloWorldTask"/> <userTask id="sid-ffa0c4f2-08c5-4df3-8cea-d941311f80ad" name="Alfresco User Task" activiti:assignee="${initiator.properties.userName}" activiti:formKey="wf:activitiReviewTask"/> <sequenceFlow id="sid-e7d03eaa-4ce8-4056-8ec2-e17ca365240e" sourceRef="sid-4e762918-2c74-4b5d-a951-5c8623f76885" targetRef="sid-ffa0c4f2-08c5-4df3-8cea-d941311f80ad"> <extensionElements> <activiti:executionListener event="start" class="org.alfresco.repo.workflow.activiti.listener.ScriptExecutionListener"> <activiti:field name="script"> <activiti:string>logger.log("Hello, World!");</activiti:string> </activiti:field> </activiti:executionListener> </extensionElements> </sequenceFlow> <endEvent id="sid-6cb74d1d-927f-45d8-96de-00b82a06982a"/> <sequenceFlow id="sid-5831021d-ad0a-4ed0-8794-42b787fc5bde" sourceRef="sid-ffa0c4f2-08c5-4df3-8cea-d941311f80ad" targetRef="sid-6cb74d1d-927f-45d8-96de-00b82a06982a"/> </process> <bpmndi:BPMNDiagram id="BPMNDiagram_helloWorld"> <bpmndi:BPMNPlane bpmnElement="helloWorld" id="BPMNPlane_helloWorld"> <bpmndi:BPMNShape id="shape-3904a25f-c60e-4f4e-8bde-1abe76ac43b1" bpmnElement="sid-4e762918-2c74-4b5d-a951-5c8623f76885"> <omgdc:Bounds x="-85.75" y="-31.25" width="30.0" height="30.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="shape-ea7c0587-2885-489c-8ff5-43339daef659" bpmnElement="sid-ffa0c4f2-08c5-4df3-8cea-d941311f80ad"> <omgdc:Bounds x="-10.75" y="-35.0" width="52.999996" height="37.5"/> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="edge-ed4e610c-20d4-4482-b3eb-c5e5e50c56bd" bpmnElement="sid-e7d03eaa-4ce8-4056-8ec2-e17ca365240e"> <omgdi:waypoint x="-55.75" y="-16.25"/> <omgdi:waypoint x="-10.75" y="-16.25"/> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="shape-76cd5615-01e4-4c1c-9941-047bc7e33454" bpmnElement="sid-6cb74d1d-927f-45d8-96de-00b82a06982a"> <omgdc:Bounds x="85.75" y="-31.25" width="30.0" height="30.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="edge-a90c2312-f16d-4fa2-a4c4-c36b073e4642" bpmnElement="sid-5831021d-ad0a-4ed0-8794-42b787fc5bde"> <omgdi:waypoint x="42.25" y="-16.25"/> <omgdi:waypoint x="85.75" y="-16.250004"/> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions>
And I don't see the log: logger.log("Hello, World!");
I already change this value in dev-log4j.xml:
log4j.logger.org.alfresco.repo.jscript.ScriptLogger=DEBUG
I tried a lot of things but I don't know what to do.
Also I'm not sure where should I see that log. I have running docker containers after execute this command on the REPO:
./run.sh build_start
Thanks a lot!!
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.