Workflow Soluiton

 View Only
  • 1.  Calling submodels from Primary webform

    Posted Oct 27, 2011 09:21 AM

    This should be a really easy question.  I am trying to create a simple webform that will allow me to select a submodel and run that process.  For instance, I'd like to have a testing model that will allow me to pull up the page, select a workflow that I am working on from a drop down box, and then run that workflow from there.  This is pretty much exactly what you see in most of the posted videos on this and the WorkflowSwat site.  I have the linked model component in the primary model, I just can't fiure out how to set the dropdown box and then open that flow on submit.  I imagine this would be a pretty easy one to answer.  Thanks.



  • 2.  RE: Calling submodels from Primary webform
    Best Answer

    Posted Oct 27, 2011 09:39 AM

    Download this package file: http://www.screencast.com/t/TtIEZpa7 (you have to click the Download this media link) and take a look at it. It is the "Training Day Package 1" from the WorkflowSWAT download site ( http://www.workflowswat.com/downloads.html ).

    Basically you add a component called GetModelNamesInProject. That outputs an array variable of your naming. In the package it's called ModelList. Then for your first form in the Primary Model, set a DropDown component to that ModelList variable. In the package the output variable is set to 'WhichModel'. Then use a Dynamic Linked Model after the form and set the Component Variable Name field to the 'WhichModel' dropdown variable.

    Hope that helps!