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

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

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

WorkflowProcessImpl.setGlobals介绍

暂无

代码示例

代码示例来源: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 identifier = attrs.getValue( "identifier" );
  9. final String type = attrs.getValue( "type" );
  10. emptyAttributeCheck( localName, "identifier", identifier, parser );
  11. emptyAttributeCheck( localName, "type", type, parser );
  12. Map<String, String> map = process.getGlobals();
  13. if ( map == null ) {
  14. map = new HashMap<String, String>();
  15. process.setGlobals( map );
  16. }
  17. map.put( identifier, type );
  18. return null;
  19. }

代码示例来源: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, attrs );
  6. WorkflowProcessImpl process = ( WorkflowProcessImpl ) parser.getParent();
  7. final String identifier = attrs.getValue( "identifier" );
  8. final String type = attrs.getValue( "type" );
  9. emptyAttributeCheck( localName, "identifier", identifier, parser );
  10. emptyAttributeCheck( localName, "type", type, parser );
  11. Map<String, String> map = process.getGlobals();
  12. if ( map == null ) {
  13. map = new HashMap<String, String>();
  14. process.setGlobals( map );
  15. }
  16. map.put( identifier, type );
  17. return null;
  18. }

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

  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, attrs );
  6. WorkflowProcessImpl process = ( WorkflowProcessImpl ) parser.getParent();
  7. final String identifier = attrs.getValue( "identifier" );
  8. final String type = attrs.getValue( "type" );
  9. emptyAttributeCheck( localName, "identifier", identifier, parser );
  10. emptyAttributeCheck( localName, "type", type, parser );
  11. Map<String, String> map = process.getGlobals();
  12. if ( map == null ) {
  13. map = new HashMap<String, String>();
  14. process.setGlobals( map );
  15. }
  16. map.put( identifier, type );
  17. return null;
  18. }

代码示例来源: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 identifier = attrs.getValue( "identifier" );
  9. final String type = attrs.getValue( "type" );
  10. emptyAttributeCheck( localName, "identifier", identifier, parser );
  11. emptyAttributeCheck( localName, "type", type, parser );
  12. Map<String, String> map = process.getGlobals();
  13. if ( map == null ) {
  14. map = new HashMap<String, String>();
  15. process.setGlobals( map );
  16. }
  17. map.put( identifier, type );
  18. return null;
  19. }

相关文章