• Platform
    • Manager
    • Maestro
    • Exchange
    • Workspaces
    • Analytics
    • Springboard
    • API
Journey SDK

Journey SDK

  • Getting Started
  • Developer Guide
  • References
  • Services Guide

›Classes

com.avoka.tm.func

  • com.avoka.tm.func
  • Classes

    • Class DeliveryFuncResult
    • Class DeliveryFuncResultBuilder
    • Class FormFuncResult
    • Class FuncParam

    Interface

    • Interface IFluentFunction

com.avoka.tm.http

  • com.avoka.tm.http
  • Classes

    • Class DeleteRequest
    • Class GetRequest
    • Class HttpRequest
    • Class HttpRequest.FileParam
    • Class HttpRequest.Param
    • Class HttpResponse
    • Class PatchRequest
    • Class PostRequest
    • Class PutRequest
    • Class RequestBuilder

com.avoka.tm.job

  • com.avoka.tm.job
  • Classes

    • Class ActionResult
    • Class ActionResultBuilder
    • Class Jobs

com.avoka.tm.query

  • com.avoka.tm.query
  • Classes

    • Class JobQuery
    • Class PropertyQuery
    • Class RefDataQuery
    • Class SpaceQuery
    • Class SvcConnQuery
    • Class SvcDefQuery
    • Class TxnHistoryQuery
    • Class TxnQuery
    • Class UserQuery

    Enum

    • Enum TxnHistoryQuery.Time
    • Enum TxnQuery.Time

com.avoka.tm.security

  • com.avoka.tm.security
  • Classes

    • Class Saml2Parser
    • Class Saml2ParserResult
    • Class SsoAuthToken

com.avoka.tm.svc

  • com.avoka.tm.svc
  • Classes

    • Class DeliveryTxnBuilder
    • Class Emailer
    • Class ErrorLogger
    • Class EventLogger
    • Class FluentFuncInvoker
    • Class GroovyServiceInvoker
    • Class JobUpdater
    • Class PropertyBuilder
    • Class ReceiptSvc
    • Class RefDataSvc
    • Class ServiceInvoker
    • Class SvcConnUpdater
    • Class TrackingCodeBuilder
    • Class TxnBuilder
    • Class TxnCheckpointSvc
    • Class TxnUpdater
    • Class UserBuilder

com.avoka.tm.test

  • com.avoka.tm.test
  • Classes

    • Class AbstractJUnitTest
    • Class JUnitTestRunner
    • Class JUnitTestRunner.TestWrapper
    • Class MockRegister
    • Class MockRequest
    • Class MockResponse
    • Class MockServletContext
    • Class MockVoBuilder

    Exception

    • junittestexception

com.avoka.tm.util

  • com.avoka.tm.util
  • Classes

    • Class Contract
    • Class DeliveryResult
    • Class DeliveryResultBuilder
    • Class Logger
    • Class MemCache
    • Class ObjectMapper
    • Class Path
    • Class Security
    • Class Threads
    • Class TxnUrlBuilder
    • Class VelTemplate
    • Class XmlDoc

    Enum

    • Enum ObjectMapper.MappingStrategy

    Exception

    • redirectexception

com.avoka.tm.vo

  • com.avoka.tm.vo
  • Classes

    • Class FileAttach
    • Class Form
    • Class Job
    • Class JobAction
    • Class JobStep
    • Class Space
    • Class SvcConn
    • Class SvcDef
    • Class Txn
    • Class TxnCheckpoint
    • Class TxnDeliveryFunc
    • Class User

Class JobUpdater

public class JobUpdater
extends java.lang.Object
Provides a job value object updater class. Examples Please find the job updater examples below.

Remove and Add a Job Property

This Groovy example shows how to update a job by removing and adding a jobProperty.
 import com.avoka.tm.svc.*
 import com.avoka.tm.vo.*
 new JobUpdater(job)
     .removeJobProperty("fav food")
     .setJobProperty("sport","cycling")
     .update() 
Since:
17.10.0

Constructor Summary

Constructors
Constructor Description
JobUpdater() Create a job updater.
JobUpdater​(Job job) Create a job updater setting the job to update.

Method Summary

All Methods Instance Methods Concrete Methods
Modifier and Type Method Description
JobUpdater removeProperty​(java.lang.String name) Specify the property to remove from the job.
JobUpdater setId​(java.lang.Long id) Set the id of the job to update.
JobUpdater
setProperty​(java.lang.String name,
           java.lang.String value)
Specify the property name and value to add or update on the job.
void update() Update the identified job with the specified parameters.

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

JobUpdater

public JobUpdater() Create a job updater.

JobUpdater

public JobUpdater​(Job job) Create a job updater setting the job to update.
Parameters:
job - the Job to update.

Method Detail

setId

public JobUpdater setId​(java.lang.Long id) Set the id of the job to update.
Parameters:
id - the id (Long) of the job to update
Returns:
the job updater

setProperty

public JobUpdater setProperty​(java.lang.String name,
                              java.lang.String value)
Specify the property name and value to add or update on the job.
Parameters:
name - the property name (required)
value - the property value (required)
Returns:
the job updater

removeProperty

public JobUpdater removeProperty​(java.lang.String name) Specify the property to remove from the job.
Parameters:
name - the property name to remove (required)
Returns:
the job updater

update

public void update() Update the identified job with the specified parameters.
← Class GroovyServiceInvokerClass PropertyBuilder →

Terms & Conditions

Privacy Policy

Cookie Policy

Copyright © 2003-2022 Temenos Headquarters SA