public class OwAlfrescoBPMWorkItem extends Object implements com.wewebu.ow.server.ecm.bpm.OwWorkitem
Alfresco BPM based implementation of a OwWorkitem
.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Field and Description |
---|---|
protected Collection |
attachmentobjects |
protected OwAlfrescoBPMRepository |
bpmRepository |
protected OwAlfrescoBPMWorkitemContainerInterface |
container |
protected com.wewebu.ow.server.ecm.OwObjectClass |
objectClass |
protected OwAlfrescoBPMProperties |
properties |
protected TaskInstance |
taskInstance |
protected Map<String,Variable> |
taskInstanceVariables |
OBJECT_TYPE_ALL_CONTAINER_OBJECTS, OBJECT_TYPE_ALL_CONTENT_OBJECTS, OBJECT_TYPE_ALL_TUPLE_OBJECTS, OBJECT_TYPE_ALL_WORKFLOW_OBJECTS, OBJECT_TYPE_BPM_ROOT_FOLDER, OBJECT_TYPE_CONTAINER_USER_START, OBJECT_TYPE_CONTENT_USER_START, OBJECT_TYPE_CROSS_QUEUE_FOLDER, OBJECT_TYPE_CUSTOM, OBJECT_TYPE_DOCUMENT, OBJECT_TYPE_DYNAMIC_VIRTUAL_FOLDER, OBJECT_TYPE_ECM_ROOT_FOLDER, OBJECT_TYPE_FOLDER, OBJECT_TYPE_HISTORY, OBJECT_TYPE_LINK, OBJECT_TYPE_PROXY_QUEUE_FOLDER, OBJECT_TYPE_PUBLIC_QUEUE_FOLDER, OBJECT_TYPE_ROSTER_FOLDER, OBJECT_TYPE_ROSTERITEM, OBJECT_TYPE_STORED_SEARCH, OBJECT_TYPE_SYS_QUEUE_FOLDER, OBJECT_TYPE_TRACKER_QUEUE_FOLDER, OBJECT_TYPE_TUPLE_USER_START, OBJECT_TYPE_UNDEFINED, OBJECT_TYPE_USER_QUEUE_FOLDER, OBJECT_TYPE_VIRTUAL_FOLDER, OBJECT_TYPE_WORKFLOW_USER_START, OBJECT_TYPE_WORKITEM, OBJECT_TYPE_WORKITEM_PROXY, OBJECT_TYPE_WORKITEM_TRACKER
Modifier | Constructor and Description |
---|---|
protected |
OwAlfrescoBPMWorkItem() |
|
OwAlfrescoBPMWorkItem(TaskInstance taskInstance,
OwAlfrescoBPMWorkitemContainerInterface container,
OwAlfrescoBPMRepository bpmRepository) |
Modifier and Type | Method and Description |
---|---|
void |
add(com.wewebu.ow.server.ecm.OwObject oObject_p) |
boolean |
canAdd(com.wewebu.ow.server.ecm.OwObject oObject_p,
int iContext_p) |
boolean |
canChangeClass() |
boolean |
canDelete(int iContext_p) |
boolean |
canDispatch(int iContext_p) |
boolean |
canFilterChilds() |
boolean |
canForcedelete(int iContext_p) |
boolean |
canGetContent(int iContentType_p,
int iContext_p) |
boolean |
canGetPermissions() |
boolean |
canGetProperties(int iContext_p) |
boolean |
canLock() |
boolean |
canMove(com.wewebu.ow.server.ecm.OwObject oObject_p,
com.wewebu.ow.server.ecm.OwObject oldParent_p,
int iContext_p) |
boolean |
canReassignToPublicContainer(int iContext_p) |
boolean |
canReassignToUserContainer(int iContext_p) |
boolean |
canRemoveReference(com.wewebu.ow.server.ecm.OwObject oObject_p,
int iContext_p) |
boolean |
canResponse() |
boolean |
canResubmit(int iContext_p) |
boolean |
canReturnToSource(int iContext_p) |
boolean |
canSetContent(int iContentType_p,
int iContext_p) |
boolean |
canSetPermissions() |
boolean |
canSetProperties(int iContext_p) |
void |
changeClass(String strNewClassName_p,
com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p) |
void |
delete() |
void |
dispatch() |
void |
forcedelete() |
int |
getChildCount(int[] iObjectTypes_p,
int iContext_p) |
com.wewebu.ow.server.ecm.OwObjectCollection |
getChilds(int[] iObjectTypes_p,
Collection propertyNames_p,
com.wewebu.ow.server.field.OwSort sort_p,
int iMaxSize_p,
int iVersionSelection_p,
com.wewebu.ow.server.field.OwSearchNode filterCriteria_p) |
String |
getClassName() |
com.wewebu.ow.server.ecm.OwPermissionCollection |
getClonedPermissions() |
com.wewebu.ow.server.ecm.OwPropertyCollection |
getClonedProperties(Collection propertyNames_p) |
Collection |
getColumnInfoList() |
com.wewebu.ow.server.ecm.OwContentCollection |
getContentCollection() |
String |
getDMSID() |
com.wewebu.ow.server.field.OwField |
getField(String strFieldClassName_p) |
String |
getFieldProviderName() |
Object |
getFieldProviderSource() |
int |
getFieldProviderType() |
Collection |
getFields() |
Collection |
getFilterProperties(Collection propertynames_p) |
String |
getID() |
com.wewebu.ow.server.ecm.OwObject |
getInstance() |
boolean |
getLock(int iContext_p) |
String |
getLockUserID(int iContext_p) |
String |
getMIMEParameter() |
String |
getMIMEType() |
boolean |
getMyLock(int iContext_p) |
String |
getName() |
Object |
getNativeObject() |
com.wewebu.ow.server.ecm.OwObjectClass |
getObjectClass() |
int |
getPageCount() |
com.wewebu.ow.server.ecm.OwObjectCollection |
getParents() |
String |
getPath() |
com.wewebu.ow.server.ecm.OwPermissionCollection |
getPermissions() |
com.wewebu.ow.server.ecm.OwPropertyCollection |
getProperties(Collection propertyNames_p) |
com.wewebu.ow.server.ecm.OwProperty |
getProperty(String strPropertyName_p) |
com.wewebu.ow.server.ecm.OwResource |
getResource() |
String |
getResourceID() |
String |
getResponse() |
Collection |
getResponses() |
Date |
getResubmitDate(int iContext_p) |
Object |
getSafeFieldValue(String sName_p,
Object defaultvalue_p) |
com.wewebu.ow.server.field.OwSearchTemplate |
getSearchTemplate() |
com.wewebu.ow.server.ecm.bpm.OwWorkitemProcessorInfo |
getStepProcessorInfo() |
protected Map<String,Variable> |
getTaskInstanceVariables() |
int |
getType() |
com.wewebu.ow.server.ecm.OwVersion |
getVersion() |
com.wewebu.ow.server.ecm.OwVersionSeries |
getVersionSeries() |
String |
getWorkflowInstanceId() |
boolean |
hasChilds(int[] iObjectTypes_p,
int iContext_p) |
boolean |
hasContent(int iContext_p) |
boolean |
hasVersionSeries() |
protected void |
loadAttachments() |
protected Object |
loadPropertyValue(com.wewebu.ow.server.ecm.OwPropertyClass propertyClass)
Makes sure the type of the returned value matches
OwFieldDefinition.getJavaClassName() . |
void |
move(com.wewebu.ow.server.ecm.OwObject oObject_p,
com.wewebu.ow.server.ecm.OwObject oldParent_p) |
protected Map<String,Object> |
prepareParameters()
Construct a map with parameters suitable for JSon encoding,
from the properties of this object.
|
void |
reassignToPublicContainer(String containername_p,
boolean delegateFlag_p) |
void |
reassignToUserContainer(String participant_p,
boolean delegateFlag_p) |
void |
refreshProperties() |
void |
refreshProperties(Collection props_p) |
void |
removeReference(com.wewebu.ow.server.ecm.OwObject oObject_p) |
void |
resubmit(Date date_p) |
void |
returnToSource() |
protected void |
save() |
protected void |
saveAttachments() |
void |
setContentCollection(com.wewebu.ow.server.ecm.OwContentCollection content_p) |
void |
setField(String sName_p,
Object value_p) |
boolean |
setLock(boolean fLock_p) |
void |
setPermissions(com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p) |
void |
setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p) |
void |
setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p,
Object mode_p) |
void |
setResponse(String strResponse_p) |
String |
toString() |
protected TaskInstance taskInstance
protected OwAlfrescoBPMWorkitemContainerInterface container
protected com.wewebu.ow.server.ecm.OwObjectClass objectClass
protected OwAlfrescoBPMRepository bpmRepository
protected OwAlfrescoBPMProperties properties
protected Collection attachmentobjects
protected OwAlfrescoBPMWorkItem()
public OwAlfrescoBPMWorkItem(TaskInstance taskInstance, OwAlfrescoBPMWorkitemContainerInterface container, OwAlfrescoBPMRepository bpmRepository) throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public String getClassName()
getClassName
in interface com.wewebu.ow.server.ecm.OwObject
public com.wewebu.ow.server.ecm.OwObjectClass getObjectClass()
getObjectClass
in interface com.wewebu.ow.server.ecm.OwObject
public com.wewebu.ow.server.ecm.OwObjectCollection getParents() throws Exception
getParents
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public com.wewebu.ow.server.ecm.OwObjectCollection getChilds(int[] iObjectTypes_p, Collection propertyNames_p, com.wewebu.ow.server.field.OwSort sort_p, int iMaxSize_p, int iVersionSelection_p, com.wewebu.ow.server.field.OwSearchNode filterCriteria_p) throws Exception
getChilds
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean hasChilds(int[] iObjectTypes_p, int iContext_p) throws Exception
hasChilds
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public int getChildCount(int[] iObjectTypes_p, int iContext_p) throws Exception
getChildCount
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void changeClass(String strNewClassName_p, com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p) throws Exception
changeClass
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canChangeClass() throws Exception
canChangeClass
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canFilterChilds() throws Exception
canFilterChilds
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public Collection getFilterProperties(Collection propertynames_p) throws Exception
getFilterProperties
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public com.wewebu.ow.server.ecm.OwVersionSeries getVersionSeries() throws Exception
getVersionSeries
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean hasVersionSeries() throws Exception
hasVersionSeries
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public com.wewebu.ow.server.ecm.OwVersion getVersion() throws Exception
getVersion
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public com.wewebu.ow.server.ecm.OwProperty getProperty(String strPropertyName_p) throws Exception
getProperty
in interface com.wewebu.ow.server.ecm.OwObject
Exception
protected Object loadPropertyValue(com.wewebu.ow.server.ecm.OwPropertyClass propertyClass) throws Exception
OwFieldDefinition.getJavaClassName()
.propertyClass
- ClassNotFoundException
Exception
protected Map<String,Variable> getTaskInstanceVariables() throws com.wewebu.ow.server.exceptions.OwException
com.wewebu.ow.server.exceptions.OwException
public com.wewebu.ow.server.ecm.OwPropertyCollection getProperties(Collection propertyNames_p) throws Exception
getProperties
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public com.wewebu.ow.server.ecm.OwPropertyCollection getClonedProperties(Collection propertyNames_p) throws Exception
getClonedProperties
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p) throws Exception
setProperties
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void setProperties(com.wewebu.ow.server.ecm.OwPropertyCollection properties_p, Object mode_p) throws Exception
setProperties
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canSetProperties(int iContext_p) throws Exception
canSetProperties
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canGetProperties(int iContext_p) throws Exception
canGetProperties
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canLock() throws Exception
canLock
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean setLock(boolean fLock_p) throws Exception
setLock
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean getLock(int iContext_p) throws Exception
getLock
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean getMyLock(int iContext_p) throws Exception
getMyLock
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public String getLockUserID(int iContext_p) throws Exception
getLockUserID
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void delete() throws Exception
delete
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canDelete(int iContext_p) throws Exception
canDelete
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void removeReference(com.wewebu.ow.server.ecm.OwObject oObject_p) throws Exception
removeReference
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canRemoveReference(com.wewebu.ow.server.ecm.OwObject oObject_p, int iContext_p) throws Exception
canRemoveReference
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void add(com.wewebu.ow.server.ecm.OwObject oObject_p) throws Exception
add
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canAdd(com.wewebu.ow.server.ecm.OwObject oObject_p, int iContext_p) throws Exception
canAdd
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void move(com.wewebu.ow.server.ecm.OwObject oObject_p, com.wewebu.ow.server.ecm.OwObject oldParent_p) throws Exception
move
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canMove(com.wewebu.ow.server.ecm.OwObject oObject_p, com.wewebu.ow.server.ecm.OwObject oldParent_p, int iContext_p) throws Exception
canMove
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public com.wewebu.ow.server.field.OwSearchTemplate getSearchTemplate() throws Exception
getSearchTemplate
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public Collection getColumnInfoList() throws Exception
getColumnInfoList
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public com.wewebu.ow.server.ecm.OwResource getResource() throws Exception
getResource
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public com.wewebu.ow.server.ecm.OwPermissionCollection getPermissions() throws Exception
getPermissions
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public com.wewebu.ow.server.ecm.OwPermissionCollection getClonedPermissions() throws Exception
getClonedPermissions
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canGetPermissions() throws Exception
canGetPermissions
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canSetPermissions() throws Exception
canSetPermissions
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void setPermissions(com.wewebu.ow.server.ecm.OwPermissionCollection permissions_p) throws Exception
setPermissions
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public com.wewebu.ow.server.ecm.OwContentCollection getContentCollection() throws Exception
getContentCollection
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void setContentCollection(com.wewebu.ow.server.ecm.OwContentCollection content_p) throws Exception
setContentCollection
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canSetContent(int iContentType_p, int iContext_p) throws Exception
canSetContent
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public boolean canGetContent(int iContentType_p, int iContext_p) throws Exception
canGetContent
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void refreshProperties() throws Exception
refreshProperties
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public void refreshProperties(Collection props_p) throws Exception
refreshProperties
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public Object getNativeObject() throws Exception
getNativeObject
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public String getPath() throws Exception
getPath
in interface com.wewebu.ow.server.ecm.OwObject
Exception
public String getResourceID() throws Exception
getResourceID
in interface com.wewebu.ow.server.ecm.OwObjectReference
Exception
public com.wewebu.ow.server.ecm.OwObject getInstance() throws Exception
getInstance
in interface com.wewebu.ow.server.ecm.OwObjectReference
Exception
public String getName()
getName
in interface com.wewebu.ow.server.ecm.OwObjectReference
public String getID()
getID
in interface com.wewebu.ow.server.ecm.OwObjectReference
public int getType()
getType
in interface com.wewebu.ow.server.ecm.OwObjectReference
public String getDMSID() throws Exception
getDMSID
in interface com.wewebu.ow.server.ecm.OwObjectReference
Exception
public int getPageCount() throws Exception
getPageCount
in interface com.wewebu.ow.server.ecm.OwObjectReference
Exception
public String getMIMEType() throws Exception
getMIMEType
in interface com.wewebu.ow.server.ecm.OwObjectReference
Exception
public String getMIMEParameter() throws Exception
getMIMEParameter
in interface com.wewebu.ow.server.ecm.OwObjectReference
Exception
public boolean hasContent(int iContext_p) throws Exception
hasContent
in interface com.wewebu.ow.server.ecm.OwObjectReference
Exception
public com.wewebu.ow.server.field.OwField getField(String strFieldClassName_p) throws Exception, com.wewebu.ow.server.exceptions.OwObjectNotFoundException
getField
in interface com.wewebu.ow.server.field.OwFieldProvider
Exception
com.wewebu.ow.server.exceptions.OwObjectNotFoundException
public void setField(String sName_p, Object value_p) throws Exception, com.wewebu.ow.server.exceptions.OwObjectNotFoundException
setField
in interface com.wewebu.ow.server.field.OwFieldProvider
Exception
com.wewebu.ow.server.exceptions.OwObjectNotFoundException
public Object getSafeFieldValue(String sName_p, Object defaultvalue_p)
getSafeFieldValue
in interface com.wewebu.ow.server.field.OwFieldProvider
public Collection getFields() throws Exception
getFields
in interface com.wewebu.ow.server.field.OwFieldProvider
Exception
public int getFieldProviderType()
getFieldProviderType
in interface com.wewebu.ow.server.field.OwFieldProvider
public Object getFieldProviderSource()
getFieldProviderSource
in interface com.wewebu.ow.server.field.OwFieldProvider
public String getFieldProviderName()
getFieldProviderName
in interface com.wewebu.ow.server.field.OwFieldProvider
public com.wewebu.ow.server.ecm.bpm.OwWorkitemProcessorInfo getStepProcessorInfo() throws com.wewebu.ow.server.exceptions.OwObjectNotFoundException
getStepProcessorInfo
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
com.wewebu.ow.server.exceptions.OwObjectNotFoundException
public void setResponse(String strResponse_p) throws Exception
setResponse
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public boolean canResponse()
canResponse
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
public String getResponse() throws Exception
getResponse
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public Collection getResponses() throws Exception
getResponses
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public void forcedelete() throws Exception
forcedelete
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public boolean canForcedelete(int iContext_p) throws Exception
canForcedelete
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public void dispatch() throws Exception
dispatch
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public boolean canDispatch(int iContext_p) throws Exception
canDispatch
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public void returnToSource() throws Exception
returnToSource
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public boolean canReturnToSource(int iContext_p) throws Exception
canReturnToSource
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public void reassignToPublicContainer(String containername_p, boolean delegateFlag_p) throws Exception
reassignToPublicContainer
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public void reassignToUserContainer(String participant_p, boolean delegateFlag_p) throws Exception
reassignToUserContainer
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public boolean canReassignToPublicContainer(int iContext_p) throws Exception
canReassignToPublicContainer
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public boolean canReassignToUserContainer(int iContext_p) throws Exception
canReassignToUserContainer
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public void resubmit(Date date_p) throws Exception
resubmit
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public boolean canResubmit(int iContext_p) throws Exception
canResubmit
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
public Date getResubmitDate(int iContext_p) throws Exception
getResubmitDate
in interface com.wewebu.ow.server.ecm.bpm.OwWorkitem
Exception
protected Map<String,Object> prepareParameters() throws Exception
Exception
public String getWorkflowInstanceId()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.