1 /*
2 * $Id: ProvenanceHandler.java 1451 2010-12-22 10:47:59Z hoheisel $
3 *
4 * Copyright 2008 Fraunhofer Gesellschaft, Munich, Germany,
5 * for its Fraunhofer Institute for Computer Architecture and Software Technology (FIRST), Berlin, Germany
6 * All rights reserved.
7 *
8 * See http://www.first.fraunhofer.de and http://www.gridworkflow.org/gwes for more details.
9 */
10
11 package net.kwfgrid.gwes;
12
13 import net.kwfgrid.gworkflowdl.structure.Workflow;
14
15 /**
16 * @author Andreas Hoheisel
17 * (<a href="http://www.andreas-hoheisel.de">www.andreas-hoheisel.de</a>)
18 * @version $Id: ProvenanceHandler.java 1451 2010-12-22 10:47:59Z hoheisel $
19 */
20 public interface ProvenanceHandler {
21
22 /**
23 * Initialize this workflow provenance handler with a specific workflow.
24 * @param workflow The workflow.
25 */
26 public void initialize(Workflow workflow);
27
28 /**
29 * Check if provenance handler is enabled.
30 * @return <code>true</code> if handler is enabled, <code>false</code> otherwise.
31 */
32 public boolean isEnabled();
33
34 /**
35 * Store provenance information.
36 * @param to The transition occurrence object.
37 * @param step The workflow processing step.
38 */
39 public void storeProvenance(TransitionOccurrence to, int step);
40
41 }