/** * Add resource in the {@link BusinessArchive} used by extensions * * @param resource * the resource to be added in the business archive * @return * the same {@link BusinessArchiveBuilder} in order to chain calls */ public BusinessArchiveBuilder addExternalResource(final BarResource resource) { addBarResourceInPath(resource, ExternalResourceContribution.EXTERNAL_RESOURCE_FOLDER + "/"); return this; }
/** * same as {@link #addConnectorImplementation(BarResource)} but for {@link org.bonitasoft.engine.filter.UserFilter} * * @see #addConnectorImplementation(BarResource) * @param resource * @return * the same {@link BusinessArchiveBuilder} in order to chain calls */ public BusinessArchiveBuilder addUserFilters(final BarResource resource) { addBarResourceInPath(resource, "userFilters/"); return this; }
/** * Add resource in the {@link BusinessArchive} used by extensions * * @param resource * the resource to be added in the business archive * @return * the same {@link BusinessArchiveBuilder} in order to chain calls */ public BusinessArchiveBuilder addExternalResource(final BarResource resource) { addBarResourceInPath(resource, ExternalResourceContribution.EXTERNAL_RESOURCE_FOLDER + "/"); return this; }
/** * Add document contents in the {@link BusinessArchive} * * @see org.bonitasoft.engine.bpm.process.impl.ProcessDefinitionBuilder#addDocumentDefinition(String) * @param resource * @return */ public BusinessArchiveBuilder addDocumentResource(final BarResource resource) { addBarResourceInPath(resource, "documents/"); return this; }
/** * same as {@link #addConnectorImplementation(BarResource)} but for {@link org.bonitasoft.engine.filter.UserFilter} * * @see #addConnectorImplementation(BarResource) * @param resource * @return * the same {@link BusinessArchiveBuilder} in order to chain calls */ public BusinessArchiveBuilder addUserFilters(final BarResource resource) { addBarResourceInPath(resource, "userFilters/"); return this; }
/** * Add document contents in the {@link BusinessArchive} * * @see org.bonitasoft.engine.bpm.process.impl.ProcessDefinitionBuilder#addDocumentDefinition(String) * @param resource * @return */ public BusinessArchiveBuilder addDocumentResource(final BarResource resource) { addBarResourceInPath(resource, "documents/"); return this; }
/** * Add JAR dependencies to the business archive. * <p> * Everything that is added as classpath resource will be added in the (JAVA) classpath of the process * <p> * <p> * e.g. if you add a connector in your process add here dependencies the process need to execute it * * @param resource * the {@link BarResource} the represent a JAR file * @return * the same {@link BusinessArchiveBuilder} in order to chain calls */ public BusinessArchiveBuilder addClasspathResource(final BarResource resource) { addBarResourceInPath(resource, "classpath/"); return this; }
/** * Add JAR dependencies to the business archive. * <p> * Everything that is added as classpath resource will be added in the (JAVA) classpath of the process * <p> * <p> * e.g. if you add a connector in your process add here dependencies the process need to execute it * * @param resource * the {@link BarResource} the represent a JAR file * @return * the same {@link BusinessArchiveBuilder} in order to chain calls */ public BusinessArchiveBuilder addClasspathResource(final BarResource resource) { addBarResourceInPath(resource, "classpath/"); return this; }
/** * Add connector implementation descriptor to the business archive. * <p> * This resource must be a connector implementation descriptor file (.impl) and must be compliant to the connector-implementation-descriptor.xsd * <p> * A connector definition should also be added in the {@link org.bonitasoft.engine.bpm.process.ProcessDefinition} using * {@link org.bonitasoft.engine.bpm.process.impl.ProcessDefinitionBuilder#addConnector(String, String, String, org.bonitasoft.engine.bpm.connector.ConnectorEvent)} * or * {@link org.bonitasoft.engine.bpm.process.impl.ActivityDefinitionBuilder#addConnector(String, String, String, org.bonitasoft.engine.bpm.connector.ConnectorEvent)} * <p> * <p> * e.g. if you add a connector in your process add here dependencies the process need to execute it * * @param resource * the {@link BarResource} the represent a connector implementation descriptor file * @return * the same {@link BusinessArchiveBuilder} in order to chain calls */ public BusinessArchiveBuilder addConnectorImplementation(final BarResource resource) { addBarResourceInPath(resource, "connector/"); return this; }
/** * Add connector implementation descriptor to the business archive. * <p> * This resource must be a connector implementation descriptor file (.impl) and must be compliant to the connector-implementation-descriptor.xsd * <p> * A connector definition should also be added in the {@link org.bonitasoft.engine.bpm.process.ProcessDefinition} using * {@link org.bonitasoft.engine.bpm.process.impl.ProcessDefinitionBuilder#addConnector(String, String, String, org.bonitasoft.engine.bpm.connector.ConnectorEvent)} * or * {@link org.bonitasoft.engine.bpm.process.impl.ActivityDefinitionBuilder#addConnector(String, String, String, org.bonitasoft.engine.bpm.connector.ConnectorEvent)} * <p> * <p> * e.g. if you add a connector in your process add here dependencies the process need to execute it * * @param resource * the {@link BarResource} the represent a connector implementation descriptor file * @return * the same {@link BusinessArchiveBuilder} in order to chain calls */ public BusinessArchiveBuilder addConnectorImplementation(final BarResource resource) { addBarResourceInPath(resource, "connector/"); return this; }