com.opensymphony.workflow.persistence.ofbiz
Class OfbizPersistence

java.lang.Object
  |
  +--com.opensymphony.workflow.persistence.ofbiz.OfbizPersistence
All Implemented Interfaces:
Persistence, StatusValues

public class OfbizPersistence
extends java.lang.Object
implements Persistence, StatusValues

Version:
$Revision: 1.9 $
Author:
Patrick Lightbody

Field Summary
protected  org.ofbiz.core.entity.GenericDelegator gd
           
 
Fields inherited from interface com.opensymphony.workflow.loader.StatusValues
FINISHED, QUEUED, UNDERWAY
 
Constructor Summary
OfbizPersistence()
           
OfbizPersistence(WorkflowContext context)
           
 
Method Summary
 Step create(long entryId, int stepId)
          Create new step with no previous step.
 Step create(long entryId, int stepId, com.opensymphony.module.user.User owner)
          Create a new step with no previous step.
 Step create(Step prev, int actionId)
           
 Step create(Step prev, int stepId, int actionId)
          Create a new step with an REQUIRED previous step that MUST be marked finished.
 Step create(Step prev, int stepId, int actionId, com.opensymphony.module.user.User owner)
          Create a new step with a REQUIRED previous step that MUST be marked finished.
 WorkflowEntry create(java.lang.String workflowName)
           
 Step findStep(long pk)
           
 WorkflowEntry findWorkflowEntry(long pk)
           
protected  void markForStorage(org.ofbiz.core.entity.GenericValue gv)
           
 void persistChanges()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gd

protected org.ofbiz.core.entity.GenericDelegator gd
Constructor Detail

OfbizPersistence

public OfbizPersistence(WorkflowContext context)

OfbizPersistence

public OfbizPersistence()
Method Detail

findWorkflowEntry

public WorkflowEntry findWorkflowEntry(long pk)
Specified by:
findWorkflowEntry in interface Persistence

create

public WorkflowEntry create(java.lang.String workflowName)
Specified by:
create in interface Persistence

create

public Step create(long entryId,
                   int stepId)
Description copied from interface: Persistence
Create new step with no previous step. This new step is marked as QUEUED.
Specified by:
create in interface Persistence

create

public Step create(long entryId,
                   int stepId,
                   com.opensymphony.module.user.User owner)
Description copied from interface: Persistence
Create a new step with no previous step. This new step is marked as UNDERWAY.
Specified by:
create in interface Persistence

create

public Step create(Step prev,
                   int stepId,
                   int actionId)
Description copied from interface: Persistence
Create a new step with an REQUIRED previous step that MUST be marked finished. This new step is marked as queued.
Specified by:
create in interface Persistence

create

public Step create(Step prev,
                   int stepId,
                   int actionId,
                   com.opensymphony.module.user.User owner)
Description copied from interface: Persistence
Create a new step with a REQUIRED previous step that MUST be marked finished. This new step is marked as UNDERWAY
Specified by:
create in interface Persistence

create

public Step create(Step prev,
                   int actionId)
Specified by:
create in interface Persistence

findStep

public Step findStep(long pk)
Specified by:
findStep in interface Persistence

markForStorage

protected void markForStorage(org.ofbiz.core.entity.GenericValue gv)

persistChanges

public void persistChanges()
Specified by:
persistChanges in interface Persistence

See www.opensymphony.com for more information.