[jboss-dev-forums] [Design of JBoss jBPM] - Re: Start process with form

tom.baeyens@jboss.com do-not-reply at jboss.com
Sat Jun 27 07:44:16 EDT 2009


i'm adding these two to the repository service:

  /** find all the activity names of the start activities for a given 
  |    * process definition.  Only top level activities are scanned.  
  |    * Every activity that doesn't have incoming transitions is considered 
  |    * a start activity. For the moment, jPDL only supports one 
  |    * start activity.  Start activity names can be null. */
  |   List<String> getStartActivityNames(String processDefinitionId);
  |   
  |   /** the resource name for the given start activity. It is assumed that 
  |    * the ProcessDefinition is already retrieved.  From the ProcessDefinition,
  |    * the {@link ProcessDefinition#getId()} and the {@link ProcessDefinition#getDeploymentId()}
  |    * can be retrieved.  The activityName can be obtained via {@link #getStartActivityNames(String)}.
  |    * An InputStream for the resource can be obtained with {@link #getResourceAsStream(String, String)}  */
  |   String getStartFormResourceName(String processDefinitionId, String activityName);
  | 

task forms are exposed through  Task.getForm().  In order to make that method name consistent, I'll be refactoring it to Task.getFormResourceName()

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240505#4240505

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240505



More information about the jboss-dev-forums mailing list