|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbiz.hammurapi.sql.DatabaseObject
biz.hammurapi.web.interaction.sql.InteractionInstanceImpl
biz.hammurapi.web.interaction.InteractionInstance
Represents interaction instance.
| Nested Class Summary | |
class |
InteractionInstance.StepInstance
Step instance |
class |
InteractionInstance.TransitionInstance
|
| Field Summary |
| Fields inherited from class biz.hammurapi.web.interaction.sql.InteractionInstanceImpl |
ExitUrl, FinishTime, Id, InteractionId, IsFinished, Owner, PropertySet, StartTime, Status, StepId |
| Fields inherited from class biz.hammurapi.sql.DatabaseObject |
columns, objectVersion, originalVersion |
| Constructor Summary | |
InteractionInstance()
Default constructor |
|
InteractionInstance(boolean force)
|
|
InteractionInstance(java.sql.ResultSet rs)
|
|
| Method Summary | |
boolean |
accept(biz.hammurapi.util.Visitor visitor)
|
void |
after(java.util.Map context)
Executes after code. |
void |
completed(java.lang.Integer stepId,
java.util.Map context,
java.lang.String userId)
Marks step as completed, evaluates transitions from it and new step instances. |
void |
delete()
|
InteractionFactory.InteractionDefinition |
getDefinition()
|
InteractionFactory |
getFactory()
|
int |
getNextSeqId()
|
InteractionInstance.StepInstance |
getOwnerStep()
|
PropertySet |
getProperties()
Creates property set or retrieves it from the database. |
java.lang.Object |
getProperty(java.lang.String name)
Convenience method to retrieve interaction instance properties. |
InteractionInstance.StepInstance |
getStep(int id)
|
InteractionInstance.StepInstance |
getStep(java.lang.String[] status)
Traverses steps tree. |
InteractionInstance.StepInstance |
getStepByDefinitionName(java.lang.String defName)
Returns single step with given step definition name. |
InteractionInstance.StepInstance |
getStepByStatus(java.lang.String status)
Returns first step in given status |
java.util.Collection |
getStepsByDefinitionName(java.lang.String defName)
Returns single step with given step definition name. |
java.util.Collection |
getStepsByDefinitionNameAndStatus(java.lang.String defName,
java.lang.String status)
Returns steps with given step definition name and status. |
InteractionInstance.TransitionInstance |
getTransition(int id)
|
void |
invalidate()
Indicates that steps and transitions information shall be reloaded. |
void |
setFactory(InteractionFactory factory)
|
void |
setSQLProcessor(biz.hammurapi.sql.SQLProcessor processor)
Loads child objects |
void |
toDom(org.w3c.dom.Element holder)
|
static java.util.Collection |
tokenize(java.lang.Object obj)
Converts object into collection of tokens according to the following rules: a) If object is Iterator then each next() return value becomes a token. |
void |
update()
Updates step information in the database |
| Methods inherited from class biz.hammurapi.web.interaction.sql.InteractionInstanceImpl |
clone, getExitUrl, getFinishTime, getId, getInteractionId, getIsFinished, getOwner, getPropertySet, getStartTime, getStatus, getStepId, project, project, setExitUrl, setFinishTime, setId, setInteractionId, setIsFinished, setOwner, setPropertySet, setStartTime, setStatus, setStepId |
| Methods inherited from class biz.hammurapi.sql.DatabaseObject |
addColumn, addObserver, addRelationship, clear, configure, configure, copy, delete, equals, fromDom, fromDom, get, getAttribute, getColumn, getColumnAttribute, getObjectVersion, getRelationship, getSqlType, hashCode, insert, isDeleted, isModified, loadRelationships, onChange, removeAttribute, removeColumnAttribute, removeObserver, setAttribute, setColumnAttribute, setOriginal, toDom, toString, update |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public InteractionInstance()
public InteractionInstance(boolean force)
public InteractionInstance(java.sql.ResultSet rs)
throws java.sql.SQLException
| Method Detail |
public void invalidate()
public InteractionFactory.InteractionDefinition getDefinition()
throws java.sql.SQLException
java.sql.SQLException
public void setSQLProcessor(biz.hammurapi.sql.SQLProcessor processor)
throws java.sql.SQLException
setSQLProcessor in interface biz.hammurapi.sql.DataAccessObjectjava.sql.SQLExceptionpublic int getNextSeqId()
public InteractionInstance.StepInstance getStepByStatus(java.lang.String status)
status -
public InteractionInstance.StepInstance getStepByDefinitionName(java.lang.String defName)
throws java.sql.SQLException
defName -
java.sql.SQLException
public java.util.Collection getStepsByDefinitionNameAndStatus(java.lang.String defName,
java.lang.String status)
throws java.sql.SQLException
defName -
java.sql.SQLException
public java.util.Collection getStepsByDefinitionName(java.lang.String defName)
throws java.sql.SQLException
defName -
java.sql.SQLExceptionpublic InteractionInstance.StepInstance getStep(java.lang.String[] status)
status - Array
public InteractionFactory getFactory()
public void setFactory(InteractionFactory factory)
public void update()
throws java.sql.SQLException
java.sql.SQLException
public void delete()
throws java.sql.SQLException
java.sql.SQLException
public PropertySet getProperties()
throws java.sql.SQLException
java.sql.SQLExceptionpublic InteractionInstance.StepInstance getStep(int id)
public InteractionInstance.TransitionInstance getTransition(int id)
throws java.sql.SQLException
java.sql.SQLException
public void after(java.util.Map context)
throws HammurapiWebException
context - evaluation context.
HammurapiWebExceptionpublic boolean accept(biz.hammurapi.util.Visitor visitor)
accept in interface biz.hammurapi.util.Visitable
public void completed(java.lang.Integer stepId,
java.util.Map context,
java.lang.String userId)
throws java.sql.SQLException,
HammurapiWebException
stepId - Control step Id. If this parameter is not equal to internal step id then interaction rewinds
to this stepId if step with this ID is processed or throws exception if step with this id is not found
or is not in "completed" status.
java.sql.SQLException
HammurapiWebExceptionpublic static java.util.Collection tokenize(java.lang.Object obj)
obj -
public InteractionInstance.StepInstance getOwnerStep()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void toDom(org.w3c.dom.Element holder)
toDom in interface biz.hammurapi.xml.dom.DomSerializablepublic java.lang.Object getProperty(java.lang.String name)
name -
java.sql.SQLException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||