Class JbpmPreprocessingUnit
- java.lang.Object
-
- org.jbpm.designer.web.preprocessing.impl.JbpmPreprocessingUnit
-
- All Implemented Interfaces:
IDiagramPreprocessingUnit
@Named("jbpmPreprocessingUnit") public class JbpmPreprocessingUnit extends Object implements IDiagramPreprocessingUnit
JbpmPreprocessingUnit - preprocessing unit for the jbpm profile
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
JbpmPreprocessingUnit.WorkItemDisplayNameComparator
-
Field Summary
Fields Modifier and Type Field Description static String
CUSTOMEDITORS_EXT
static String
CUSTOMEDITORS_NAME
static String
DEFAULT_CATEGORY_NAME
static String
DEFAULT_THEME_NAME
static String
INCLUDE_DATA_OBJECT
protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent>
notification
static String
PATTERNS_EXT
static String
PATTERNS_NAME
static String
PROCESSDICTIONARY_NAME
static String
STENCILSET_PATH
static String
THEME_COOKIE_NAME
static String
THEME_EXT
static String
THEME_NAME
static Pattern
UNICODE_WORDS_AND_UNDERSCORES_PATTERN
static String
WORKITEM_DEFINITION_EXT
protected javax.enterprise.event.Event<org.jbpm.designer.notification.DesignerWorkitemInstalledEvent>
workitemInstalledEventEvent
-
Constructor Summary
Constructors Constructor Description JbpmPreprocessingUnit()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
createAbsoluteIconPath(String assetPath, String iconPath)
void
evaluateWorkDefinitions(Map<String,org.jbpm.process.workitem.WorkDefinitionImpl> workDefinitions, Asset<String> widAsset, String assetLocation, Repository repository, org.kie.workbench.common.services.shared.project.KieModule kieModule)
protected static byte[]
getBytesFromFile(File file)
String
getOutData()
protected String
getProcessIdFromAsset(Asset<String> asset)
void
init(javax.servlet.ServletContext servletContext, String designerPath, org.uberfire.backend.vfs.VFSService vfsService)
void
init(javax.servlet.ServletContext servletContext, org.uberfire.backend.vfs.VFSService vfsService)
void
preprocess(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, IDiagramProfile profile, javax.servlet.ServletContext serlvetContext, boolean readOnly, boolean viewLocked, org.uberfire.io.IOService ioService, RepositoryDescriptor descriptor)
protected static String
readFile(String pathname)
void
setBuilderCache(org.kie.workbench.common.services.backend.builder.core.LRUBuilderCache builderCache)
void
setGlobalDir(String globalDir)
-
-
-
Field Detail
-
STENCILSET_PATH
public static final String STENCILSET_PATH
- See Also:
- Constant Field Values
-
WORKITEM_DEFINITION_EXT
public static final String WORKITEM_DEFINITION_EXT
- See Also:
- Constant Field Values
-
THEME_NAME
public static final String THEME_NAME
- See Also:
- Constant Field Values
-
THEME_EXT
public static final String THEME_EXT
- See Also:
- Constant Field Values
-
PATTERNS_NAME
public static final String PATTERNS_NAME
- See Also:
- Constant Field Values
-
PATTERNS_EXT
public static final String PATTERNS_EXT
- See Also:
- Constant Field Values
-
DEFAULT_THEME_NAME
public static final String DEFAULT_THEME_NAME
- See Also:
- Constant Field Values
-
CUSTOMEDITORS_NAME
public static final String CUSTOMEDITORS_NAME
- See Also:
- Constant Field Values
-
PROCESSDICTIONARY_NAME
public static final String PROCESSDICTIONARY_NAME
- See Also:
- Constant Field Values
-
CUSTOMEDITORS_EXT
public static final String CUSTOMEDITORS_EXT
- See Also:
- Constant Field Values
-
THEME_COOKIE_NAME
public static final String THEME_COOKIE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_CATEGORY_NAME
public static final String DEFAULT_CATEGORY_NAME
- See Also:
- Constant Field Values
-
INCLUDE_DATA_OBJECT
public static final String INCLUDE_DATA_OBJECT
- See Also:
- Constant Field Values
-
UNICODE_WORDS_AND_UNDERSCORES_PATTERN
public static final Pattern UNICODE_WORDS_AND_UNDERSCORES_PATTERN
-
workitemInstalledEventEvent
@Inject protected javax.enterprise.event.Event<org.jbpm.designer.notification.DesignerWorkitemInstalledEvent> workitemInstalledEventEvent
-
notification
@Inject protected javax.enterprise.event.Event<org.uberfire.workbench.events.NotificationEvent> notification
-
-
Method Detail
-
readFile
protected static String readFile(String pathname) throws IOException
- Throws:
IOException
-
getBytesFromFile
protected static byte[] getBytesFromFile(File file) throws IOException
- Throws:
IOException
-
createAbsoluteIconPath
public static String createAbsoluteIconPath(String assetPath, String iconPath)
-
init
public void init(javax.servlet.ServletContext servletContext, org.uberfire.backend.vfs.VFSService vfsService)
-
init
public void init(javax.servlet.ServletContext servletContext, String designerPath, org.uberfire.backend.vfs.VFSService vfsService)
-
getOutData
public String getOutData()
- Specified by:
getOutData
in interfaceIDiagramPreprocessingUnit
-
preprocess
public void preprocess(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, IDiagramProfile profile, javax.servlet.ServletContext serlvetContext, boolean readOnly, boolean viewLocked, org.uberfire.io.IOService ioService, RepositoryDescriptor descriptor)
- Specified by:
preprocess
in interfaceIDiagramPreprocessingUnit
-
evaluateWorkDefinitions
public void evaluateWorkDefinitions(Map<String,org.jbpm.process.workitem.WorkDefinitionImpl> workDefinitions, Asset<String> widAsset, String assetLocation, Repository repository, org.kie.workbench.common.services.shared.project.KieModule kieModule) throws Exception
- Throws:
Exception
-
setGlobalDir
public void setGlobalDir(String globalDir)
-
setBuilderCache
public void setBuilderCache(org.kie.workbench.common.services.backend.builder.core.LRUBuilderCache builderCache)
-
-