org.jbpm.workflow.core.impl.WorkflowProcessImpl.setImports()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(102)

本文整理了Java中org.jbpm.workflow.core.impl.WorkflowProcessImpl.setImports()方法的一些代码示例,展示了WorkflowProcessImpl.setImports()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkflowProcessImpl.setImports()方法的具体详情如下:
包路径:org.jbpm.workflow.core.impl.WorkflowProcessImpl
类名称:WorkflowProcessImpl
方法名:setImports

WorkflowProcessImpl.setImports介绍

暂无

代码示例

代码示例来源:origin: kiegroup/jbpm

  1. public Object start(final String uri,
  2. final String localName,
  3. final Attributes attrs,
  4. final ExtensibleXmlParser parser) throws SAXException {
  5. parser.startElementBuilder( localName,
  6. attrs );
  7. WorkflowProcessImpl process = ( WorkflowProcessImpl ) parser.getParent();
  8. final String name = attrs.getValue( "name" );
  9. emptyAttributeCheck( localName, "name", name, parser );
  10. java.util.Set<String> list = process.getImports();
  11. if ( list == null ) {
  12. list = new HashSet<String>();
  13. process.setImports( list );
  14. }
  15. list.add( name );
  16. return null;
  17. }

代码示例来源:origin: kiegroup/jbpm

  1. public Object start(final String uri, final String localName,
  2. final Attributes attrs, final ExtensibleXmlParser parser)
  3. throws SAXException {
  4. parser.startElementBuilder(localName, attrs);
  5. WorkflowProcessImpl process = (WorkflowProcessImpl) parser.getParent();
  6. final String name = attrs.getValue("name");
  7. final String type = attrs.getValue("importType");
  8. final String location = attrs.getValue("location");
  9. final String namespace = attrs.getValue("namespace");
  10. emptyAttributeCheck(localName, "name", name, parser);
  11. if (type != null && location != null && namespace != null) {
  12. Map<String, String> typedImports = (Map<String, String>) process.getMetaData(type);
  13. if (typedImports == null) {
  14. typedImports = new HashMap<String, String>();
  15. process.setMetaData(type, typedImports);
  16. }
  17. typedImports.put(namespace, location);
  18. } else {
  19. java.util.Set<String> list = process.getImports();
  20. if (list == null) {
  21. list = new HashSet<String>();
  22. process.setImports(list);
  23. }
  24. list.add(name);
  25. }
  26. return null;
  27. }

代码示例来源:origin: org.jbpm/jbpm-flow-builder

  1. public Object start(final String uri,
  2. final String localName,
  3. final Attributes attrs,
  4. final ExtensibleXmlParser parser) throws SAXException {
  5. parser.startElementBuilder( localName,
  6. attrs );
  7. WorkflowProcessImpl process = ( WorkflowProcessImpl ) parser.getParent();
  8. final String name = attrs.getValue( "name" );
  9. emptyAttributeCheck( localName, "name", name, parser );
  10. java.util.Set<String> list = process.getImports();
  11. if ( list == null ) {
  12. list = new HashSet<String>();
  13. process.setImports( list );
  14. }
  15. list.add( name );
  16. return null;
  17. }

代码示例来源:origin: org.jbpm/jbpm-bpmn2

  1. public Object start(final String uri, final String localName,
  2. final Attributes attrs, final ExtensibleXmlParser parser)
  3. throws SAXException {
  4. parser.startElementBuilder(localName, attrs);
  5. WorkflowProcessImpl process = (WorkflowProcessImpl) parser.getParent();
  6. final String name = attrs.getValue("name");
  7. final String type = attrs.getValue("importType");
  8. final String location = attrs.getValue("location");
  9. final String namespace = attrs.getValue("namespace");
  10. emptyAttributeCheck(localName, "name", name, parser);
  11. if (type != null && location != null && namespace != null) {
  12. Map<String, String> typedImports = (Map<String, String>) process.getMetaData(type);
  13. if (typedImports == null) {
  14. typedImports = new HashMap<String, String>();
  15. process.setMetaData(type, typedImports);
  16. }
  17. typedImports.put(namespace, location);
  18. } else {
  19. java.util.Set<String> list = process.getImports();
  20. if (list == null) {
  21. list = new HashSet<String>();
  22. process.setImports(list);
  23. }
  24. list.add(name);
  25. }
  26. return null;
  27. }

相关文章