Skip to content

Instantly share code, notes, and snippets.

View marcus-nl's full-sized avatar

Marcus marcus-nl

  • XLRIT
  • The Netherlands
View GitHub Profile
@marcus-nl
marcus-nl / cam-13205-stacktrace.txt
Created April 22, 2021 08:29
CAM-13205 Stacktrace
10:12:11.327 [main] ERROR org.camunda.bpm.application - ENGINE-07018 Unregistering process application for deployment but could not remove process definitions from deployment cache.
org.camunda.bpm.engine.ProcessEngineException: An exception occurred in the persistence layer. Please check the server logs for a detailed message and the entire exception stack trace.
at org.camunda.bpm.engine.impl.util.ExceptionUtil.wrapPersistenceException(ExceptionUtil.java:263) ~[classes/:na]
at org.camunda.bpm.engine.impl.util.ExceptionUtil.doWithExceptionWrapper(ExceptionUtil.java:257) ~[classes/:na]
at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.executeSelectList(DbSqlSession.java:111) ~[classes/:na]
at org.camunda.bpm.engine.impl.db.sql.DbSqlSession.selectList(DbSqlSession.java:103) ~[classes/:na]
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.selectListWithRawParameter(DbEntityManager.java:182) ~[classes/:na]
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.selectList(DbEntityMan
@marcus-nl
marcus-nl / add_origin.sh
Created July 28, 2020 12:19
Bash index and pull git repositories in workspace
dir="$1"
repo=`cd $dir && git config --get remote.origin.url`
echo "$dir; $repo"
---
2.0.2: https://github.com/wildfly/galleon/releases/download/2.0.2.Final/galleon-2.0.2.Final.zip
4.2.5: https://github.com/wildfly/galleon/releases/download/4.2.5.Final/galleon-4.2.5.Final.zip
@marcus-nl
marcus-nl / JsonScalar.java
Created April 1, 2020 13:39
Implementation of JSON Scalar type
package com.xlrit.gears.engine.graphql.scalar;
import graphql.Assert;
import graphql.language.ArrayValue;
import graphql.language.BooleanValue;
import graphql.language.EnumValue;
import graphql.language.FloatValue;
import graphql.language.IntValue;
import graphql.language.NullValue;
import graphql.language.ObjectField;
@marcus-nl
marcus-nl / Leave of absence.json
Created March 25, 2020 14:28
Leave of Absence process structure
{
"key": "leave_of_absence",
"id": "leave_of_absence",
"name": "Leave of absence",
"graph": {
"nodes": [{
"id": "N9",
"type": "serviceTask",
"name": "Behavior4",
"label": "Publish LOB_REQUEST\nCreate MAIL\nUpdate MAIL.body\nUpdate MAIL.subject\nUpdate MAIL.to_address\nPublish MAIL"
<?xml version='1.0' encoding='UTF-8'?>
<server xmlns="urn:jboss:domain:10.0">
<extensions>
<extension module="org.camunda.bpm.wildfly.camunda-wildfly-subsystem"/>
...
</extensions>
...
<profile>
...
@marcus-nl
marcus-nl / 1. ExampleProcessEnginePlugin.java
Last active July 29, 2019 07:48
Camunda custom form handling example
class ExampleProcessEnginePlugin extends AbstractProcessEnginePlugin {
@Override
public void preInit(ProcessEngineConfigurationImpl processEngineConfiguration) {
super.preInit(processEngineConfiguration);
ExampleFormEngine formEngine = new ExampleFormEngine();
processEngineConfiguration.setCustomFormEngines(singletonList(formEngine));
processEngineConfiguration.setCustomPreBPMNParseListeners(singletonList(new ExampleParseListener(formEngine)));
}
}
public class HibernateSchemaManagementTool implements SchemaManagementTool, ServiceRegistryAwareService {
private ServiceRegistry serviceRegistry;
@Override
public SchemaCreator getSchemaCreator(Map options) {
// TODO use AvailableSettings.SCHEMA_CREATE_FILTER
return new SchemaCreatorImpl( getSchemaFilter( options, "hibernate.schema.create.filter" ) );
}
@Override
@marcus-nl
marcus-nl / fiddle.response.json
Last active August 29, 2015 14:23
JSON current
{
"data":[
[
"1",
"iPad2 (8GB)",
"322"
],
[
"2",
"iPad2 (16GB)",
@marcus-nl
marcus-nl / fiddle.response.json
Created June 26, 2015 13:04
JSFiddle test data (DataTables)
{
"current": 1,
"rowCount": 50,
"data": [
{
"id": 1122,
"sender": "eric@facebook.com",
"received": "2015-06-21T18:41:56"
},
{