Bug 451197 - Make Class loading in BasicWorkflowRunnerOperation generic and reuseable
Summary: Make Class loading in BasicWorkflowRunnerOperation generic and reuseable
Status: CLOSED WONTFIX
Alias: None
Product: Sphinx
Classification: Automotive
Component: Scripting Support (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-12 11:01 EST by Christian Dietrich CLA
Modified: 2024-05-07 00:48 EDT (History)
1 user (show)

See Also:


Attachments
A very naive implementation of the Helper (4.12 KB, application/octet-stream)
2014-11-12 11:37 EST, Christian Dietrich CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Dietrich CLA 2014-11-12 11:01:21 EST
It would be nice to have the logic of loading the workflow-class in BasicWorkflowRunnerOperation in a Utility Class so that it can be used to load arbitrary types and not only workflows
Comment 1 Christian Dietrich CLA 2014-11-12 11:33:11 EST
In My Usecase i have a Validator Class in a Project and i want to load and call it via a Utility dynamically
Comment 2 Christian Dietrich CLA 2014-11-12 11:37:15 EST
Created attachment 248613 [details]
A very naive implementation of the Helper

A very naive implementation of the Helper

my call would look like

IMyDslValidator val = helper.getInstance(Activator.getPlugin(), IMyDslValidator.class, file, modelObject);

the in dynamic workflow

workflowInstance = helper.getInstance(Activator.getPlugin(), Workflow.class, getWorkflow(), getModel());
Comment 3 Balazs Grill CLA 2024-05-07 00:48:54 EDT
Closed stale issue before migration