public class WfXML2
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DMSFILTERATT |
static java.lang.String |
MESSAGEATT |
static short |
MODE_ACTIVE
Operating mode active means that WfXML is fully active.
|
static short |
MODE_OFF
Operating mode off means that WfXML is deactivated.
|
static short |
MODE_PASSIVE
Operating mode passive means that WfXML is activated.
|
Constructor and Description |
---|
WfXML2() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanContext() |
static java.lang.String |
dateToWfXMLDate(java.util.Date date)
Transforms a date to a WfXML date (like specified in the WfXML
specification).
|
static com.dec.avw.core.Server |
getDefaultServer() |
static com.dec.avw.core.User |
getDefaultUser() |
static int |
getMaxLogSize() |
static short |
getOperatingMode()
Use this method to find out if the local server operates in passive,
active, or off mode.
|
static Partner |
getPartner(java.lang.String id)
Use this method to get a Partner object representing a WfXML
communication partner that you know (you must know the id with which the
partner has been defined).
|
static WfXMLMessage |
getWfXMLMessage()
Return the current WfXMLMessage.
|
static boolean |
isLogEnabled(java.lang.String object) |
static void |
setContext(ActivityInstance ai,
WfXMLMessage message)
Sets the context for DMS Filter Operations
|
static java.util.Date |
wfXMLDateToDate(java.lang.String dateString)
Transforms a WfXML date to a Java
Date object. |
public static final short MODE_ACTIVE
public static final short MODE_OFF
public static final short MODE_PASSIVE
public static final java.lang.String DMSFILTERATT
public static final java.lang.String MESSAGEATT
public static java.lang.String dateToWfXMLDate(java.util.Date date)
YYYY-MM-DDThh:mm:ssZ
and always in GMT (Greenwich Mean
Time). So this method transforms the given date to this requirements.wfXMLDateToDate(String)
method.date
- A Date object containing a date/time which you want to
tranform to WfXML representationpublic static com.dec.avw.core.Server getDefaultServer()
public static com.dec.avw.core.User getDefaultUser()
public static int getMaxLogSize()
public static short getOperatingMode()
short
value representing the operating mode of
the local server. This can be one of the constants of this class,
e.g., MODE_ACTIVE
.public static Partner getPartner(java.lang.String id) throws java.lang.Exception
id
- The id with which the partner has been defined in the
enterprise configuration of the local server.null
if no partner with this id exists.java.lang.Exception
public static boolean isLogEnabled(java.lang.String object)
public static java.util.Date wfXMLDateToDate(java.lang.String dateString)
Date
object. The
WfXML date must be in the specified format
YYYY-MM-DDThh:mm:ssZ
and in GMT (Greenwich Mean Time). The
returned date object will represent the time in the current timezone,
depending on where the computer is located. For transformations in the
other direction, use the dateToWfXMLDate
method.dateString
- A String object containing the WfXML representation of a
date/time.Date
object containing the date and
time.ApplicationException
- if the String dateString
is not formatted
according to the above mentioned format.public static void setContext(ActivityInstance ai, WfXMLMessage message)
ai
- the ActivityInstance; get it with WfEngine.getContext()message
- the message; get it with WfXML2.getWfXMLMessage()public static void cleanContext()
public static WfXMLMessage getWfXMLMessage()
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.