Skip to content

Instantly share code, notes, and snippets.

View akoskm's full-sized avatar

Akos Kemives akoskm

View GitHub Profile
/usr/pgsql-9.3/bin/vacuumlo -n -v jbpm6
Connected to database "jbpm6"
Test run: no large objects will be removed!
Checking content in public.content
Checking workitembytearray in public.workiteminfo
Checking rulesbytearray in public.sessioninfo
Checking processinstancebytearray in public.processinstanceinfo
Would remove 34 large objects from database "jbpm6".
package com.mycompany.test.jbpm;
import bitronix.tm.resource.jdbc.PoolingDataSource;
import org.jbpm.runtime.manager.impl.RuntimeEnvironmentBuilder;
import org.jbpm.services.task.identity.JBossUserGroupCallbackImpl;
import org.jbpm.services.task.utils.ContentMarshallerHelper;
import org.jbpm.test.JBPMHelper;
import org.junit.Test;
import org.kie.api.io.ResourceType;
@akoskm
akoskm / gist:5ce8fe830ebc8d2cac0c
Created June 25, 2015 12:07
jBPM retrigger last WorkItem command
package com.mycompany.sample.jbpm.command;
import org.drools.core.command.impl.GenericCommand;
import org.drools.core.command.impl.KnowledgeCommandContext;
import org.drools.core.process.instance.WorkItem;
import org.jbpm.workflow.instance.node.WorkItemNodeInstance;
import org.kie.api.runtime.KieSession;
import org.kie.api.runtime.process.NodeInstance;
import org.kie.api.runtime.process.WorkflowProcessInstance;
import org.kie.internal.command.Context;
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="Definition"
targetNamespace="http://www.jboss.org/drools"
typeLanguage="http://www.java.com/javaTypes"
expressionLanguage="http://www.mvel.org/2.0"
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
xmlns:g="http://www.jboss.org/drools/flow/gpd"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
set nocompatible " be iMproved, required
filetype off " required
set tabstop=4
set shiftwidth=4
set expandtab
set list
set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<
var Array = {
create: function(arr) {
if (arr) {
this.data = arr;
} else {
this.data = [];
}
return this;
},
each: function(func, reverse) {
@akoskm
akoskm / index.html
Last active February 29, 2016 20:22
<!DOCTYPE html>
<html>
<head>
<meta content="width=device-width,initial-scale=1" name="viewport">
<title>Work Description Generator</title>
<style>
body {
margin: 10px;
font-size: 16px;
}

Keybase proof

I hereby claim:

  • I am akoskm on github.
  • I am akoskm (https://keybase.io/akoskm) on keybase.
  • I have a public key ASC9xA-7Lyx44Q_s-adaEdvE85fGhMf2MLJkw6FDBRpSxgo

To claim this, I am signing this object:

@akoskm
akoskm / index-new.jsx
Last active September 3, 2019 09:02
Use React Context to DRY up your components
<TableContext.Provider value={product}>
<Table
products={products}
onProductChange={handleProductChange}
/>
<Sidebar />
</TableContext.Provider>
@akoskm
akoskm / function.ts
Last active September 12, 2019 14:04
Use TypeScript to DRY up your components
onClick: (event: any) => void