Coder Social home page Coder Social logo

Comments (7)

Yiuman avatar Yiuman commented on May 13, 2024

任务的扩展属性应该可以:

RepositoryService repositoryService = getProcessEngine().getRepositoryService();
BpmnModel bpmnModel = repositoryService.getBpmnModel(task.getProcessDefinitionId());
FlowElement flowElement = bpmnModel.getFlowElement(task.getTaskDefinitionKey());
UserTask userTask = (UserTask) flowElement;
List<CustomProperty> customProperties = userTask.getCustomProperties();

```java
这样取吧,你可以试试

from bpmn-vue-activiti.

Yiuman avatar Yiuman commented on May 13, 2024

https://github.com/Yiuman/citrus 这个后端项目也实现了部分比较通用的功能,若你也需要实现后端工作流相关功能可以参考下 @zsoftbuilder

from bpmn-vue-activiti.

zsoftbuilder avatar zsoftbuilder commented on May 13, 2024

通过编辑器添加的扩展属性,获取到的这个UserTask里的customProperties是空的获取不到配置的role

1629338622(1)

from bpmn-vue-activiti.

Yiuman avatar Yiuman commented on May 13, 2024

那就看下userTask.getExtensionElements里边有没东东吧

from bpmn-vue-activiti.

zsoftbuilder avatar zsoftbuilder commented on May 13, 2024

同样是空的,是不是编辑器生成的xml标签有问题呢?activist7不支持这种标签呢?
1629357667(1)

from bpmn-vue-activiti.

zsoftbuilder avatar zsoftbuilder commented on May 13, 2024

请问要直接用UserTask.getAttributes()就能获取到的属性,在编辑器里怎么设置添加?

from bpmn-vue-activiti.

Yiuman avatar Yiuman commented on May 13, 2024

我也几个月没碰过这块了,还是自己找下资料吧大兄弟

from bpmn-vue-activiti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.