congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NominateTaskCommand.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.kie.remote.jaxb.gen.NominateTaskCommand
constructor

Best Java code snippets using org.kie.remote.jaxb.gen.NominateTaskCommand.<init> (Showing top 4 results out of 315)

origin: org.kie.remote/kie-remote-jaxb-gen

/**
 * Create an instance of {@link NominateTaskCommand }
 * 
 */
public NominateTaskCommand createNominateTaskCommand() {
  return new NominateTaskCommand();
}
origin: org.kie.remote/kie-remote-client

/**
 * Create an instance of {@link NominateTaskCommand }
 * 
 */
public NominateTaskCommand createNominateTaskCommand() {
  return new NominateTaskCommand();
}
origin: org.kie.remote/kie-remote-client

@Override
public void nominate( long taskId, String userId, List<OrganizationalEntity> potentialOwners ) {
  NominateTaskCommand cmd = new NominateTaskCommand();
  cmd.setTaskId(taskId);
  cmd.setUserId(userId);
  List<org.kie.remote.jaxb.gen.OrganizationalEntity> genOrgEntList = convertKieOrgEntListToGenOrgEntList(potentialOwners);
  if( genOrgEntList != null ) {
    cmd.getPotentialOwners().addAll(genOrgEntList);
  }
  executeCommand(cmd);
}
origin: org.kie.remote/kie-remote-client

@Override
public RemoteApiResponse nominate( long taskId, String... potentialOwnerUserIds ) {
  RemoteApiResponse<Void> response;
  if( potentialOwnerUserIds == null || potentialOwnerUserIds.length == 0 ) { 
    return new RemoteApiResponse<Void>(RemoteOperationStatus.CLIENT_FAILURE, "Null or empty list of potential owner user ids received as argument");
  }
  try { 
    NominateTaskCommand cmd = new NominateTaskCommand();
    cmd.setTaskId(taskId);
    cmd.setUserId(delegate.getConfig().getUserName());
    List<org.kie.remote.jaxb.gen.OrganizationalEntity> genOrgEntList 
      = convertStringListToGenOrgEntList(Arrays.asList(potentialOwnerUserIds));
    if( genOrgEntList != null ) {
      cmd.getPotentialOwners().addAll(genOrgEntList);
    }
    delegate.executeCommand(cmd);
    response = new RemoteApiResponse<Void>();
  } catch( RemoteClientException rce ) { 
    response = createRemoteApiResponse(rce);
  } catch( Exception e ) { 
    response = new RemoteApiResponse<Void>(RemoteOperationStatus.UNKNOWN_FAILURE, e);
  }
  return response;
}
org.kie.remote.jaxb.genNominateTaskCommand<init>

Popular methods of NominateTaskCommand

  • getPotentialOwners
    Gets the value of the potentialOwners property. This accessor method returns a reference to the live
  • setTaskId
  • setUserId

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JCheckBox (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Best IntelliJ 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