Codota Logo
Case.getInitiatorVariableName
Code IndexAdd Codota to your IDE (free)

How to use
getInitiatorVariableName
method
in
org.flowable.cmmn.model.Case

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: org.flowable/flowable-cmmn-converter

  public static void writeCase(Case caseModel, XMLStreamWriter xtw) throws Exception {
    xtw.writeStartElement(ELEMENT_CASE);
    xtw.writeAttribute(ATTRIBUTE_ID, caseModel.getId());

    if (StringUtils.isNotEmpty(caseModel.getName())) {
      xtw.writeAttribute(ATTRIBUTE_NAME, caseModel.getName());
    }
    
    if (StringUtils.isNotEmpty(caseModel.getInitiatorVariableName())) {
      xtw.writeAttribute(FLOWABLE_EXTENSIONS_PREFIX, FLOWABLE_EXTENSIONS_NAMESPACE, ATTRIBUTE_INITIATOR_VARIABLE_NAME, caseModel.getInitiatorVariableName());
    }
    
    if (!caseModel.getCandidateStarterUsers().isEmpty()) {
      xtw.writeAttribute(FLOWABLE_EXTENSIONS_PREFIX, FLOWABLE_EXTENSIONS_NAMESPACE, ATTRIBUTE_CASE_CANDIDATE_USERS, CmmnXmlUtil.convertToDelimitedString(caseModel.getCandidateStarterUsers()));
    }

    if (!caseModel.getCandidateStarterGroups().isEmpty()) {
      xtw.writeAttribute(FLOWABLE_EXTENSIONS_PREFIX, FLOWABLE_EXTENSIONS_NAMESPACE, ATTRIBUTE_CASE_CANDIDATE_GROUPS, CmmnXmlUtil.convertToDelimitedString(caseModel.getCandidateStarterGroups()));
    }

    if (StringUtils.isNotEmpty(caseModel.getDocumentation())) {

      xtw.writeStartElement(ELEMENT_DOCUMENTATION);
      xtw.writeCharacters(caseModel.getDocumentation());
      xtw.writeEndElement();
    }
  }
}
origin: org.flowable/flowable-cmmn-engine

protected CaseInstanceEntity createCaseInstanceEntityFromDefinition(CommandContext commandContext, CaseDefinition caseDefinition) {
  CaseInstanceEntityManager caseInstanceEntityManager = CommandContextUtil.getCaseInstanceEntityManager(commandContext);
  CaseInstanceEntity caseInstanceEntity = caseInstanceEntityManager.create();
  caseInstanceEntity.setCaseDefinitionId(caseDefinition.getId());
  caseInstanceEntity.setStartTime(CommandContextUtil.getCmmnEngineConfiguration(commandContext).getClock().getCurrentTime());
  caseInstanceEntity.setState(CaseInstanceState.ACTIVE);
  caseInstanceEntity.setTenantId(caseDefinition.getTenantId());
  String authenticatedUserId = Authentication.getAuthenticatedUserId();
  caseInstanceEntity.setStartUserId(authenticatedUserId);
  
  caseInstanceEntityManager.insert(caseInstanceEntity);
  
  if (authenticatedUserId != null) {
    IdentityLinkUtil.createCaseInstanceIdentityLink(caseInstanceEntity, authenticatedUserId, null, IdentityLinkType.STARTER);
  }
  caseInstanceEntity.setSatisfiedSentryPartInstances(new ArrayList<>(1));
  CmmnDeploymentManager deploymentManager = CommandContextUtil.getCmmnEngineConfiguration(commandContext).getDeploymentManager();
  CmmnModel cmmnModel = deploymentManager.resolveCaseDefinition(caseDefinition).getCmmnModel();
  Case caseModel = cmmnModel.getCaseById(caseDefinition.getKey());
  if (caseModel.getInitiatorVariableName() != null) {
    caseInstanceEntity.setVariable(caseModel.getInitiatorVariableName(), Authentication.getAuthenticatedUserId());
  }
  return caseInstanceEntity;
}
org.flowable.cmmn.modelCasegetInitiatorVariableName

Popular methods of Case

  • getPlanModel
  • getAllCaseElements
  • getCandidateStarterGroups
  • getCandidateStarterUsers
  • getDocumentation
  • getId
  • getName
  • <init>
  • setCandidateStarterGroups
  • setCandidateStarterUsers
  • setInitiatorVariableName
  • setName
  • setInitiatorVariableName,
  • setName,
  • setPlanModel

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now