如何结束露天的人类任务

编程入门 行业动态 更新时间:2024-10-07 14:25:42
本文介绍了如何结束露天的人类任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有以下问题.如何在露天用方法结束用户任务? 我正在尝试修复露天的错误,该错误不允许我在整个过程中仅执行服务任务.因此,我包括一个用户任务,但我想自动完成它(结束它)...我尝试了很多事情,但似乎没有任何效果.我还可以做些什么? 我正在尝试修复露天的bug,该bug不允许我在整个过程中仅执行服务任务,因此我包含了一个用户任务,但我想自动完成它(结束它)... 我尝试了很多事情,但似乎无济于事.我还能做什么?

I have the following question. How can I end a user task in alfresco with method? I am trying to fix a alfresco's bug, which it doesn't allow me to have only a service task in a whole process. So I include a user task, but i want to auto-complete it (end it)... I have tried many things but nothing seem to work. What else can i do? I am trying to fix a alfresco's bug, which it doesn't allow me to have only a service task in a whole process.So I include a user task, but i want to auto-complete it (end it)... I have tried many things but nothing seem to work. What else can i do?

我的进程最后一个bpmn是:

My process last bpmn is:

<?xml version="1.0" encoding="UTF-8"?> <definitions xmlns="www.omg/spec/BPMN/20100524/MODEL" xmlns:xsi="www.w3/2001/XMLSchema-instance" xmlns:xsd="www.w3/2001/XMLSchema" xmlns:activiti="activiti/bpmn" xmlns:bpmndi="www.omg/spec/BPMN/20100524/DI" xmlns:omgdc="www.omg/spec/DD/20100524/DC" xmlns:omgdi="www.omg/spec/DD/20100524/DI" typeLanguage="www.w3/2001/XMLSchema" expressionLanguage="www.w3/1999/XPath" targetNamespace="www.activiti/test"> <process id="OneTask" name="One Task" isExecutable="true"> <serviceTask id="servicetask1" name="Script Task" ac tivi ti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate"> <extensionElements> <activiti:field name="script"> <activiti:string><![CDATA[logger.log("Hello Service Task");]]> </activiti:string> </activiti:field> </extensionElements> </serviceTask> <endEvent id="terminateendevent1" name="TerminateEndEvent"> <terminateEventDefinition></terminateEventDefinition> </endEvent> <startEvent id="alfrescoStartevent1" name="Alfresco start" activiti:formKey="wf:submitAdhocTask"></startEvent> <sequenceFlow id="flow4" sourceRef="alfrescoStartevent1" targetRef="servicetask1"></sequenceFlow> <userTask id="alfrescoUsertask1" name="Alfresco User Task" activiti:formKey="wf:adhocTask"> <extensionElements> <activiti:taskListener event="create" class="org.alfresco.repo.workflow.activiti.tasklistener.ScriptTaskListener"> <activiti:field name="script"> <activiti:string><![CDATA[ logger.log("Hello User Task"); taskplete(); ]]></activiti:string> </activiti:field> </activiti:taskListener> </extensionElements> </userTask> <sequenceFlow id="flow5" sourceRef="servicetask1" targetRef="alfrescoUsertask1"></sequenceFlow> <sequenceFlow id="flow6" sourceRef="alfrescoUsertask1" targetRef="terminateendevent1"></sequenceFlow> </process> <bpmndi:BPMNDiagram id="BPMNDiagram_OneTask"> <bpmndi:BPMNPlane bpmnElement="OneTask" id="BPMNPlane_OneTask"> <bpmndi:BPMNShape bpmnElement="servicetask1" id="BPMNShape_servicetask1"> <omgdc:Bounds height="55.0" width="105.0" x="200.0" y="180.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="terminateendevent1" id="BPMNShape_terminateendevent1"> <omgdc:Bounds height="35.0" width="35.0" x="590.0" y="190.0"></omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="alfrescoStartevent1" id="BPMNShape_alfrescoStartevent1"> <omgdc:Bounds height="35.0" width="35.0" x="90.0" y="190.0"> </omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNShape bpmnElement="alfrescoUsertask1" id="BPMNShape_alfrescoUsertask1"> <omgdc:Bounds height="55.0" width="105.0" x="370.0" y="180.0"> </omgdc:Bounds> </bpmndi:BPMNShape> <bpmndi:BPMNEdge bpmnElement="flow4" id="BPMNEdge_flow4"> <omgdi:waypoint x="125.0" y="207.0"></omgdi:waypoint> <omgdi:waypoint x="200.0" y="207.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5"> <omgdi:waypoint x="305.0" y="207.0"></omgdi:waypoint> <omgdi:waypoint x="370.0" y="207.0"></omgdi:waypoint> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6"> <omgdi:waypoint x="475.0" y="207.0"></omgdi:waypoint> <omgdi:waypoint x="590.0" y="207.0"></omgdi:waypoint> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions>

我需要你的帮助. 每个意见都被接受. 也许您不能直接帮助我,但每个想法都可以帮助您.

I need your help. Every opinion is accepted it. Maybe you can't help me directly but every idea is helpful.

推荐答案

尝试使用边界计时器以这种方式自动结束任务 forums.activiti/content/ending-usertask-timerevent-using-taskendtasktransitionid-method

try using the boundary-timer in that way the task will be automatically ended forums.activiti/content/ending-usertask-timerevent-using-taskendtasktransitionid-method

更多推荐

如何结束露天的人类任务

本文发布于:2023-11-28 11:03:47,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642141.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:露天   人类   结束

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!