Package de.xima.fc.api.entity
Class VorgangAPI
- java.lang.Object
-
- de.xima.fc.api.ASubAPI
-
- de.xima.fc.api.entity.AEntityAPI<Vorgang>
-
- de.xima.fc.api.entity.VorgangAPI
-
public class VorgangAPI extends AEntityAPI<Vorgang>
API class for manipulation ofVorgang
entities.- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
-
Fields inherited from class de.xima.fc.api.entity.AEntityAPI
entityClass
-
-
Constructor Summary
Constructors Constructor Description VorgangAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IExclusiveFormRecordLockResult
acquireExclusiveFormRecordLock(UserContext uc, IBasicFormRecordRequestData req)
Acquires an exclusive lock on the form record.Vorgang
addAttachment(UserContext uc, Vorgang vorgang, Attachment attachment)
Method for adding a attachment to aVorgang
.Vorgang
addSubmission(UserContext uc, Vorgang formRecord, IUser user, EFormRecordSubmitContext submitContext, FrontendServer submitFrontendServer, String submitServerBaseUrl, String formData, boolean newDataEntry)
Adds a new submission to the form record.int
bulkDelete(UserContext uc, List<Long> formRecordIds)
Bulk deletes all form records with the given IDs iff the authenticated user given by the user context has permission to access the form records and the form records can be deleted (the state allows deletion).int
bulkMarkRead(UserContext uc, List<Long> formRecordIds, boolean read)
Bulk updates the 'read' value of all form records with the given IDs to the given 'read' value iff the authenticated user given by the user context has permission to access the form records.int
bulkMove(UserContext uc, Set<Long> formRecordIds, Postfach inbox)
Bulk moves all form records with the given IDs to the given inbox iff the authenticated user given by the user context has permission to access the form records.Vorgang
changeStatusChangedReadFlag(UserContext uc, Vorgang process, boolean read)
Vorgang
correctStatus(UserContext uc, Vorgang formRecord, Status targetState, Benutzer user)
Deprecated.The old workflow is deprecated, use method for the new workflow.Vorgang
correctStatus(UserContext uc, Vorgang formRecord, Status targetState, IUser user)
Deprecated.The old workflow is deprecated, use method for the new workflow.List<Vorgang>
getAllByBenutzer(UserContext uc, Benutzer benutzer)
Deprecated.List<Vorgang>
getAllByPostfach(UserContext uc, Postfach postfach)
List<Vorgang>
getByUser(UserContext uc, IUser user)
PagedResult<Vorgang>
getByUser(UserContext uc, IUser user, int page, int pageSize)
Vorgang
getByUuidAndUser(UserContext uc, UUID uuid, IUser user)
List<Vorgang>
getChildren(UserContext uc, Vorgang formRecord)
Map<String,String>
getCustomAttributes(UserContext uc, Vorgang v)
Method for determining all custom attributes of aVorgang
.List<IFormRecordBaseData>
getFormRecordBaseData(UserContext uc, de.xima.cmn.criteria.QueryCriteriaManager qcm)
Gets the form record base data for the given queryIFormRecordDoiInitData
getFormRecordDoiInitData(UserContext uc, Vorgang formRecord)
Gets the data that was used to initialize the Double opt-in of the given form recordIFormRecordReviewData
getFormRecordReviewData(UserContext uc, IInboxFormRecordRequest inboxRequest)
Gets the form record review data for a given process idIFormRecordUploadRequestData
getFormRecordUploadRequestData(UserContext uc, IInboxFormRecordRequest inboxRequest)
Gets the form record upload request data for a given process idVorgang
getParent(UserContext uc, Vorgang formRecord)
List<ExtendedEntityModel<Vorgang>>
getVorgaengeData(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm)
List<ExtendedEntityModel<Vorgang>>
getVorgaengeData(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
Method for determining of process data by aProjekt
.List<ExtendedEntityModel<Vorgang>>
getVorgaengeData(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes)
Method for determining of process data by a project and inboxes.List<ExtendedEntityModel<Vorgang>>
getVorgaengeData(UserContext uc, Projekt project, Postfach inbox, de.xima.cmn.criteria.QueryCriteriaManager qcm)
List<ExtendedEntityModel<Vorgang>>
getVorgaengeData(UserContext uc, Projekt project, Postfach inbox, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
Method for determining of process data by a project and a inbox.long
getVorgaengeDataTotalCount(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm)
long
getVorgaengeDataTotalCount(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
Method for determining the total number of process data of the processes of aProjekt
.long
getVorgaengeDataTotalCount(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes)
long
getVorgaengeDataTotalCount(UserContext uc, Projekt project, Postfach inbox, de.xima.cmn.criteria.QueryCriteriaManager qcm)
long
getVorgaengeDataTotalCount(UserContext uc, Projekt project, Postfach inbox, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
Vorgang
getVorgangBy(UserContext uc, Projekt projekt, String vorgangProzessID)
Vorgang
getVorgangBy(UserContext uc, String vorgangProzessID)
Method for determining aVorgang
by the process ID.ExtendedEntityModel<Vorgang>
getVorgangsData(UserContext uc, Projekt project, Vorgang v, de.xima.cmn.criteria.QueryCriteriaManager qcm)
ExtendedEntityModel<Vorgang>
getVorgangsData(UserContext uc, Projekt project, Vorgang v, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
ExtendedEntityModel<Vorgang>
getVorgangsData(UserContext uc, String prozessId, de.xima.cmn.criteria.QueryCriteriaManager qcm)
ExtendedEntityModel<Vorgang>
getVorgangsData(UserContext uc, String prozessId, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
Method for determining of process data of a concreteVorgang
by a process ID.IExclusiveFormRecordLockResult
releaseExclusiveFormRecordLock(UserContext uc, IBasicFormRecordRequestData req)
Releases an exclusive lock on the form record.-
Methods inherited from class de.xima.fc.api.entity.AEntityAPI
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getEntityRefs, getPagedResult, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, update
-
Methods inherited from class de.xima.fc.api.ASubAPI
getHandlerProvider
-
-
-
-
Method Detail
-
getByUuidAndUser
public Vorgang getByUuidAndUser(UserContext uc, UUID uuid, IUser user)
- Since:
- 8.2.0
- See Also:
IVorgangHandler.getByUuidAndUser(UserContext, UUID, IUser)
-
getByUser
public List<Vorgang> getByUser(UserContext uc, IUser user)
- Since:
- 8.2.0
- See Also:
IVorgangHandler.getByUser(UserContext, IUser)
-
getByUser
public PagedResult<Vorgang> getByUser(UserContext uc, IUser user, int page, int pageSize)
- Since:
- 8.2.0
- See Also:
IVorgangHandler.getByUser(UserContext, IUser, int, int)
-
getVorgangBy
public Vorgang getVorgangBy(UserContext uc, String vorgangProzessID)
Method for determining aVorgang
by the process ID.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.vorgangProzessID
-String
the process ID of theVorgang
.- Returns:
Vorgang
the searched process.- Since:
- 2.4.3
-
getVorgangBy
public Vorgang getVorgangBy(UserContext uc, Projekt projekt, String vorgangProzessID)
-
addAttachment
public Vorgang addAttachment(UserContext uc, Vorgang vorgang, Attachment attachment)
Method for adding a attachment to aVorgang
.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.vorgang
- theVorgang
, to which the attachment should be added.attachment
-Attachment
the one to add.- Returns:
Vorgang
, to which the attachment was added.
-
addSubmission
public Vorgang addSubmission(UserContext uc, Vorgang formRecord, IUser user, EFormRecordSubmitContext submitContext, @Nullable FrontendServer submitFrontendServer, String submitServerBaseUrl, String formData, boolean newDataEntry)
Adds a new submission to the form record.- Parameters:
uc
- The user context with the user who initiated this action.formRecord
- Theform record
to which the submission should be added.user
- The user who submitted the form record.submitContext
- The context in which the form record was submitted.submitFrontendServer
- The frontend server that received the submission.submitServerBaseUrl
- The base URL of the server that received the submission.formData
- The data of the submission.newDataEntry
- Whether this submission should be stored as a new data entry.- Returns:
- The updated
form record
with the added submission. - Since:
- 8.2.0
-
getParent
@Nullable public Vorgang getParent(UserContext uc, Vorgang formRecord)
- Parameters:
uc
- The user context for the user who initiated this query.formRecord
- Form record for which to find the parent.- Returns:
- The parent form record of the given form record, or
null
if no parent exists.
-
getChildren
public List<Vorgang> getChildren(UserContext uc, Vorgang formRecord)
- Parameters:
uc
- The user context for the user who initiated this query.formRecord
- Form record for which to find the parent.- Returns:
- All children of the given form record, or an empty list if no children exist.
-
getAllByPostfach
public List<Vorgang> getAllByPostfach(UserContext uc, Postfach postfach)
- Parameters:
uc
-UserContext
the user context in which the action is to be performed.postfach
-Postfach
, whose processes are to be determined.- Returns:
List
ofVorgang
.- Since:
- 2.4.5
-
getVorgaengeData
public List<ExtendedEntityModel<Vorgang>> getVorgaengeData(UserContext uc, Projekt project, Postfach inbox, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
Method for determining of process data by a project and a inbox.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
the processes are assigned.inbox
- thePostfach
in which the processes lie.qcm
-QueryCriteriaManager
with specific filter parameters.tableType
-EProjectSpecificDBTable
specifies from which table the data should be determined. If theEProjectSpecificDBTable.DATA_INBOX
table type is selected, the inbox parameter can be set tonull
.- Returns:
List
with generic objects of process data.- Since:
- 4.3.2
-
getVorgaengeData
public List<ExtendedEntityModel<Vorgang>> getVorgaengeData(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes)
Method for determining of process data by a project and inboxes.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
the processes are assigned.inboxes
- the array ofPostfach
in which the processes lie.qcm
-QueryCriteriaManager
with specific filter parameters.tableType
-EProjectSpecificDBTable
specifies from which table the data should be determined. If theEProjectSpecificDBTable.DATA_INBOX
table type is selected, the inbox parameter can be set tonull
.- Returns:
List
with generic objects of process data.- Since:
- 4.3.2
-
getVorgaengeData
public List<ExtendedEntityModel<Vorgang>> getVorgaengeData(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
Method for determining of process data by aProjekt
.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
the processes are assigned.qcm
-QueryCriteriaManager
with specific filter parameters.tableType
-EProjectSpecificDBTable
specifies from which table the data should be determined.- Returns:
List
with generic objects of process data.- Since:
- 4.3.2
-
getVorgangsData
public ExtendedEntityModel<Vorgang> getVorgangsData(UserContext uc, String prozessId, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
Method for determining of process data of a concreteVorgang
by a process ID.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.prozessId
-String
the process ID of the process which data should be loaded.qcm
-QueryCriteriaManager
with specific filter parameters.tableType
-EProjectSpecificDBTable
specifies from which table the data should be determined.- Returns:
- generic object of process data.
- Since:
- 4.3.2
-
getVorgangsData
public ExtendedEntityModel<Vorgang> getVorgangsData(UserContext uc, Projekt project, Vorgang v, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
to which the process belongs.v
- theVorgang
whose data is to be determined.qcm
-QueryCriteriaManager
with specific filter parameters.tableType
-EProjectSpecificDBTable
specifies from which table the data should be determined.- Returns:
- generic object of process data or
null
. - Since:
- 4.3.2
-
getVorgaengeDataTotalCount
public long getVorgaengeDataTotalCount(UserContext uc, Projekt project, Postfach inbox, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
Method for determining the total number of process data of the processes of aProjekt
and aPostfach
.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
to which the processes belongs.inbox
- thePostfach
in which the processes lie.qcm
-QueryCriteriaManager
with specific filter parameters.tableType
-EProjectSpecificDBTable
specifies from which table the data should be determined. If theEProjectSpecificDBTable.DATA_INBOX
table type is selected, the inbox parameter can be set tonull
.- Returns:
- Number of elements.
- Since:
- 4.3.2
-
getVorgaengeDataTotalCount
public long getVorgaengeDataTotalCount(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType, Postfach... inboxes)
Method for determining the total number of process data of the processes of aProjekt
and aPostfach
.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
to which the processes belongs.inboxes
- the array ofPostfach
in which the processes lie.qcm
-QueryCriteriaManager
with specific filter parameters.tableType
-EProjectSpecificDBTable
specifies from which table the data should be determined. If theEProjectSpecificDBTable.DATA_INBOX
table type is selected, the inbox parameter can be set tonull
.- Returns:
- Number of elements.
- Since:
- 4.3.2
-
getVorgaengeDataTotalCount
public long getVorgaengeDataTotalCount(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm, EProjectSpecificDBTable tableType)
Method for determining the total number of process data of the processes of aProjekt
.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
to which the processes belongs.qcm
-QueryCriteriaManager
with specific filter parameters.tableType
-EProjectSpecificDBTable
specifies from which table the data should be determined.- Returns:
- Number of elements.
- Since:
- 4.3.2
-
getCustomAttributes
public Map<String,String> getCustomAttributes(UserContext uc, Vorgang v)
Method for determining all custom attributes of aVorgang
.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.v
-Vorgang
, whose custom attributes are to be determined.- Returns:
Map
with elements.- Since:
- 4.2.0
-
getFormRecordReviewData
public IFormRecordReviewData getFormRecordReviewData(UserContext uc, IInboxFormRecordRequest inboxRequest)
Gets the form record review data for a given process id- Parameters:
uc
-UserContext
to useinboxRequest
- holds the request data- Returns:
- the form record review data (including meta data) of the form record
- Since:
- 7.0.0
-
getFormRecordUploadRequestData
public IFormRecordUploadRequestData getFormRecordUploadRequestData(UserContext uc, IInboxFormRecordRequest inboxRequest)
Gets the form record upload request data for a given process id- Parameters:
uc
-UserContext
to useinboxRequest
- holds the request data- Returns:
- the form record upload request data (including meta data) of the form record
- Since:
- 8.2.0
-
getFormRecordBaseData
public List<IFormRecordBaseData> getFormRecordBaseData(UserContext uc, de.xima.cmn.criteria.QueryCriteriaManager qcm)
Gets the form record base data for the given query- Parameters:
uc
-UserContext
to useqcm
- defines the query- Returns:
- list of form record data (including meta data) of the form record
- Since:
- 7.0.0
-
getFormRecordDoiInitData
public IFormRecordDoiInitData getFormRecordDoiInitData(UserContext uc, Vorgang formRecord)
Gets the data that was used to initialize the Double opt-in of the given form record- Parameters:
uc
-UserContext
to useformRecord
- to get Double opt-in initialization data for- Returns:
- data that was used to initialize the Double opt-in of the given form record or null if the form record is not in a Double opt-in 'state'
- Since:
- 7.0.0
-
bulkMarkRead
public int bulkMarkRead(UserContext uc, List<Long> formRecordIds, boolean read)
Bulk updates the 'read' value of all form records with the given IDs to the given 'read' value iff the authenticated user given by the user context has permission to access the form records. If the user context does not provide an authenticated user (e.g. avirtual user
) no form records will be updated.- Parameters:
uc
-UserContext
with an authenticated user for database transactions. For creating a user context for an authenticated user seeUserContextFactory.forUser(IUser)
.formRecordIds
-List
of IDs of the form records that the user requests to be updated.read
-Boolean
value to set the attribute 'gelesen' to- Returns:
- the number of updated records
- Throws:
de.xima.cmn.dao.exceptions.UpdateException
- if the given user context does not provide an authenticated user.- Since:
- 6.2.1
-
bulkMove
public int bulkMove(UserContext uc, Set<Long> formRecordIds, Postfach inbox)
Bulk moves all form records with the given IDs to the given inbox iff the authenticated user given by the user context has permission to access the form records. If the user context does not provide an authenticated user (e.g. avirtual user
) no form records will be updated.- Parameters:
uc
-UserContext
with an authenticated user for database transactions. For creating a user context for an authenticated user seeUserContextFactory.forUser(IUser)
.formRecordIds
-Set
of IDs of the form records that the user requests to be updated.- Returns:
- the number of updated records.
- Throws:
de.xima.cmn.dao.exceptions.UpdateException
- if the given user context does not provide an authenticated user.- Since:
- 8.0.2
-
bulkDelete
public int bulkDelete(UserContext uc, List<Long> formRecordIds)
Bulk deletes all form records with the given IDs iff the authenticated user given by the user context has permission to access the form records and the form records can be deleted (the state allows deletion). If the user context does not provide an authenticated user (e.g. avirtual user
) no form records will be deleted.- Parameters:
uc
-UserContext
with an authenticated user for database transactions. For creating a user context for an authenticated user seeUserContextFactory.forUser(IUser)
.formRecordIds
-List
of IDs of the form records that the user requests to be deleted.- Returns:
- the number of deleted form records.
- Throws:
de.xima.cmn.dao.exceptions.DeleteException
- if the given entity context does not provide an authenticated user.- Since:
- 6.2.1
-
correctStatus
@Deprecated public Vorgang correctStatus(UserContext uc, Vorgang formRecord, Status targetState, IUser user)
Deprecated.The old workflow is deprecated, use method for the new workflow.Performs a correction on the form record, i.e. saves the form data and changes the state, but does not execute the workflow.- Parameters:
uc
- Current user context.formRecord
- Form record to process.targetState
- Target state to set.user
- User who initiated the correction.- Returns:
- The updated
form record
entity.
-
acquireExclusiveFormRecordLock
public IExclusiveFormRecordLockResult acquireExclusiveFormRecordLock(UserContext uc, IBasicFormRecordRequestData req)
Acquires an exclusive lock on the form record.- Parameters:
uc
-UserContext
to be usedreq
-IBasicFormRecordRequestData
identifying the form record to be locked- Returns:
- result which tells if the operation was successful or not
- Since:
- 6.6.13 & 7.0.5
-
releaseExclusiveFormRecordLock
public IExclusiveFormRecordLockResult releaseExclusiveFormRecordLock(UserContext uc, IBasicFormRecordRequestData req)
Releases an exclusive lock on the form record.- Parameters:
uc
-UserContext
to be usedreq
-IBasicFormRecordRequestData
identifying the form record to be unlocked- Returns:
- result which tells if the operation was successful or not
- Since:
- 6.6.13 & 7.0.5
-
getAllByBenutzer
@Deprecated public List<Vorgang> getAllByBenutzer(UserContext uc, Benutzer benutzer)
Deprecated.Method for determining allVorgang
s associated with theBenutzer
. TheVorgang
are determined by theBenutzerGruppe
and itsPostfach
.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.benutzer
-Benutzer
, which is assigned to the processes.- Returns:
List
ofVorgang
- Since:
- 2.4.3
-
getVorgaengeData
@Deprecated public List<ExtendedEntityModel<Vorgang>> getVorgaengeData(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm)
Deprecated.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
the processes are assigned.qcm
-QueryCriteriaManager
with specific filter parameters.- Returns:
List
with generic objects of process data.
-
getVorgaengeData
@Deprecated public List<ExtendedEntityModel<Vorgang>> getVorgaengeData(UserContext uc, Projekt project, Postfach inbox, de.xima.cmn.criteria.QueryCriteriaManager qcm)
Deprecated.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
the processes are assigned.inbox
- thePostfach
in which the processes lie.qcm
-QueryCriteriaManager
with specific filter parameters.- Returns:
List
with generic objects of process data.
-
getVorgangsData
@Deprecated public ExtendedEntityModel<Vorgang> getVorgangsData(UserContext uc, String prozessId, de.xima.cmn.criteria.QueryCriteriaManager qcm)
- Parameters:
uc
-UserContext
the user context in which the action is to be performed.prozessId
-String
the process ID of the process whose data is to be loaded.qcm
-QueryCriteriaManager
with specific filter parameters.- Returns:
- generic object of process data.
-
getVorgangsData
@Deprecated public ExtendedEntityModel<Vorgang> getVorgangsData(UserContext uc, Projekt project, Vorgang v, de.xima.cmn.criteria.QueryCriteriaManager qcm)
Deprecated.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
to which the process belongs.v
- theVorgang
whose data is to be determined.qcm
-QueryCriteriaManager
with specific filter parameters.- Returns:
- generic object of process data or
null
.
-
getVorgaengeDataTotalCount
@Deprecated public long getVorgaengeDataTotalCount(UserContext uc, Projekt project, de.xima.cmn.criteria.QueryCriteriaManager qcm)
Deprecated.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
to which the processes belongs.qcm
-QueryCriteriaManager
with specific filter parameters.- Returns:
- Number of elements.
-
getVorgaengeDataTotalCount
@Deprecated public long getVorgaengeDataTotalCount(UserContext uc, Projekt project, Postfach inbox, de.xima.cmn.criteria.QueryCriteriaManager qcm)
Deprecated.- Parameters:
uc
-UserContext
the user context in which the action is to be performed.project
- theProjekt
to which the processes belongs.inbox
- thePostfach
in which the processes lie.qcm
-QueryCriteriaManager
with specific filter parameters. If theEProjectSpecificDBTable.DATA_INBOX
table type is selected, the inbox parameter can be set tonull
.- Returns:
- Number of elements.
-
correctStatus
@Deprecated public Vorgang correctStatus(UserContext uc, Vorgang formRecord, Status targetState, Benutzer user)
Deprecated.The old workflow is deprecated, use method for the new workflow.Performs a correction on the form record, i.e. saves the form data and changes the state, but does not execute the workflow.- Parameters:
uc
- Current user context.formRecord
- Form record to process.targetState
- Target state to set.user
- User who initiated the correction.- Returns:
- The updated
form record
entity.
-
changeStatusChangedReadFlag
public Vorgang changeStatusChangedReadFlag(UserContext uc, Vorgang process, boolean read)
-
-