[
https://issues.apache.org/jira/browse/OODT-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13480215#comment-13480215
]
Brian Foster commented on OODT-491:
-----------------------------------
okay so i've been digging more into the WorkflowProcessor stuff... here are a
few things i think we should change:
1) the cache is actually holding all the WorkflowProcessors in memory at the
same time, this will cause memory issues really quick, so here is was i
purpose: WorkflowInstance is holding the state of each WorkflowProcessor (and
anything that isn't, move to the WorkflowInstance -- see #2 about this though),
so let not even keep the WorkflowProcessors in memory (they can be rebuilt when
they are needed from the WorkflowInstance objects). This will required another
ID field to be added to WorkflowInstance though (maybe just a metadata field --
see #2 below)... i just need something such that given a WorkflowInstance I am
able to determine other WorkflowInstance(s) which it is connected to via
WorkflowProcessors... this model would allow for me in the future to cache
static instances of WorkflowProcessors and just use them to process
WorkflowInstance when needed (would be a huge speed gain -- but that would come
as an improvement at a later date).
2) Also i think WorkflowInstance class is getting cluttered with member
variables that don't always apply to a Workflow... also variables like
currentTaskId now makes no sense for parallel workflows (this is very much a
sequential workflow field)... what if we come up with a reserved metadata group
(i.e. workflow/) which a WorkflowProcessor can dump its custom things into and
then read back out (i.e. priority, number of retries, current task(s),
etc...)... that way WorkflowInstance can just be kept simple (start and end
date, etc...)... then we deprecate currentTaskId.
> Finish line tasks for Wengine integration
> -----------------------------------------
>
> Key: OODT-491
> URL: https://issues.apache.org/jira/browse/OODT-491
> Project: OODT
> Issue Type: Umbrella
> Components: workflow manager
> Reporter: Chris A. Mattmann
> Assignee: Chris A. Mattmann
> Fix For: 0.5
>
> Attachments: NewWorkflowModel.patch.txt
>
>
> The final tasks to wrap up wengine integration into trunk.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira