congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CmmnModel.getTargetNamespace
Code IndexAdd Tabnine to your IDE (free)

How to use
getTargetNamespace
method
in
org.flowable.cmmn.model.CmmnModel

Best Java code snippets using org.flowable.cmmn.model.CmmnModel.getTargetNamespace (Showing top 2 results out of 315)

origin: org.flowable/flowable-cmmn-converter

  public static void writeRootElement(CmmnModel model, XMLStreamWriter xtw, String encoding) throws Exception {
    xtw.writeStartDocument(encoding, "1.0");

    // start definitions root element
    xtw.writeStartElement(ELEMENT_DEFINITIONS);
    xtw.setDefaultNamespace(CMMN_NAMESPACE);
    xtw.writeDefaultNamespace(CMMN_NAMESPACE);
    xtw.writeNamespace(XSI_PREFIX, XSI_NAMESPACE);
    xtw.writeNamespace(FLOWABLE_EXTENSIONS_PREFIX, FLOWABLE_EXTENSIONS_NAMESPACE);
    xtw.writeNamespace(CMMNDI_PREFIX, CMMNDI_NAMESPACE);
    xtw.writeNamespace(OMGDC_PREFIX, OMGDC_NAMESPACE);
    xtw.writeNamespace(OMGDI_PREFIX, OMGDI_NAMESPACE);
    for (String prefix : model.getNamespaces().keySet()) {
      if (!defaultNamespaces.contains(prefix) && StringUtils.isNotEmpty(prefix))
        xtw.writeNamespace(prefix, model.getNamespaces().get(prefix));
    }
    if (StringUtils.isNotEmpty(model.getTargetNamespace())) {
      xtw.writeAttribute(ATTRIBUTE_TARGET_NAMESPACE, model.getTargetNamespace());
    } else {
      xtw.writeAttribute(ATTRIBUTE_TARGET_NAMESPACE, CASE_NAMESPACE);
    }
  }
}
origin: org.flowable/flowable-cmmn-engine

@Override
protected void executeParse(CmmnParserImpl cmmnParser, CmmnParseResult cmmnParseResult, Case caze) {
  CaseDefinitionEntity caseDefinitionEntity = CommandContextUtil.getCaseDefinitionEntityManager().create();
  caseDefinitionEntity.setKey(caze.getId());
  caseDefinitionEntity.setName(caze.getName());
  caseDefinitionEntity.setDescription(caze.getDocumentation());
  caseDefinitionEntity.setCategory(cmmnParseResult.getCmmnModel().getTargetNamespace());
  caseDefinitionEntity.setDeploymentId(cmmnParseResult.getResourceEntity().getDeploymentId());
  cmmnParseResult.addCaseDefinition(caseDefinitionEntity, cmmnParseResult.getResourceEntity(), cmmnParseResult.getCmmnModel());
  processPlanFragment(cmmnParser, cmmnParseResult, caze.getPlanModel());
}
org.flowable.cmmn.modelCmmnModelgetTargetNamespace

Popular methods of CmmnModel

  • getCases
  • getLocationMap
  • getAssociations
  • getFlowLocationGraphicInfo
  • getGraphicInfo
  • getPrimaryCase
  • findPlanItem
  • getCaseById
  • <init>
  • addAssociation
  • addCase
  • addCriterion
  • addCase,
  • addCriterion,
  • addDecision,
  • addFlowGraphicInfoList,
  • addGraphicInfo,
  • addProcess,
  • findPlanItemByPlanItemDefinitionId,
  • getCriterion,
  • getDecisionById

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • JComboBox (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now