[
https://issues.apache.org/jira/browse/OODT-593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14026431#comment-14026431
]
Chris A. Mattmann commented on OODT-593:
----------------------------------------
did a command line test, and it worked:
{noformat}
Started dynamic workflow with id 'd755282c-f0a1-11e3-a7ac-5dfc980d1835'
[chipotle:local/workflow/bin] mattmann% Jun 10, 2014 9:19:24 AM
org.apache.oodt.cas.workflow.engine.IterativeWorkflowProcessorThread
checkTaskRequiredMetadata
INFO: Task: [Hello World] has no required metadata fields
Jun 10, 2014 9:19:24 AM
org.apache.oodt.cas.workflow.engine.IterativeWorkflowProcessorThread
executeTaskLocally
INFO: Executing task: [Hello World] locally
Hello World: Chris
Jun 10, 2014 9:19:24 AM
org.apache.oodt.cas.workflow.engine.IterativeWorkflowProcessorThread
checkTaskRequiredMetadata
INFO: Task: [Goodbye World] has no required metadata fields
Jun 10, 2014 9:19:24 AM
org.apache.oodt.cas.workflow.engine.IterativeWorkflowProcessorThread
executeTaskLocally
INFO: Executing task: [Goodbye World] locally
Goodbye World: Chris
[chipotle:local/workflow/bin] mattmann% ./wmgr stop
-n Shutting down cas workflow manager:
OK
[chipotle:local/workflow/bin] mattmann% ./wmgr start
-n Starting cas workflow manager:
OK
Jun 10, 2014 9:19:33 AM
org.apache.oodt.cas.workflow.system.XmlRpcWorkflowManager loadProperties
INFO: Loading Workflow Manager Configuration Properties from:
[../etc/workflow.properties]
Jun 10, 2014 9:19:33 AM
org.apache.oodt.cas.workflow.engine.ThreadPoolWorkflowEngineFactory getResmgrUrl
INFO: No Resource Manager URL provided or malformed URL: executing jobs
locally. URL: []
Jun 10, 2014 9:19:33 AM
org.apache.oodt.cas.workflow.system.XmlRpcWorkflowManager <init>
INFO: Workflow Manager started by mattmann
[chipotle:local/workflow/bin] mattmann% ./wmgr-client --url
http://localhost:9001 --operation --getWorkflowInsts
Jun 10, 2014 9:19:43 AM
org.apache.oodt.cas.workflow.system.XmlRpcWorkflowManager getWorkflowInstances
INFO: Getting workflow instances: retrieved: 2 instances
Jun 10, 2014 9:19:43 AM
org.apache.oodt.cas.workflow.system.XmlRpcWorkflowManager getWorkflowInstances
FINE: Possible dynamic workflow for instance:
[660d448b-c981-4843-9c63-fc8bcd139535]: trying to reconstitute from cached
instance
Instance: [id=d755282c-f0a1-11e3-a7ac-5dfc980d1835, status=FINISHED,
currentTask=urn:oodt:GoodbyeWorld, workflow=Dynamic
Workflow-660d448b-c981-4843-9c63-fc8bcd139535,wallClockTime=0.0026333333333333334,currentTaskWallClockTime=0.0]
Instance: [id=78196e03-f0a1-11e3-9494-9feeb1c3526b, status=FINISHED,
currentTask=urn:oodt:GoodbyeWorld,
workflow=testWorkflow,wallClockTime=0.0026,currentTaskWallClockTime=0.0]
{noformat}
Now testing with the OPSUI. If that works, will commit this shortly.
> Dyn workflows in Workflow Manager cause NPEs on restart
> -------------------------------------------------------
>
> Key: OODT-593
> URL: https://issues.apache.org/jira/browse/OODT-593
> Project: OODT
> Issue Type: Bug
> Components: workflow manager
> Affects Versions: 0.5
> Reporter: Chris A. Mattmann
> Assignee: Chris A. Mattmann
> Priority: Critical
> Fix For: 0.8
>
> Attachments: OODT-593.Mattmann.060914.patch.txt
>
>
> Since dyn workflows showed up in OODT 0.5 (OODT-209), dynamic models aren't
> persisted to the WM repo, and thus aren't loadable after restarting the WM.
> We need to:
> * check to see if the model can't be found, if not; then
> * look it up from the instance repo (b/c we likely have cached it)
> That should do the trick.
--
This message was sent by Atlassian JIRA
(v6.2#6252)