Oliver Hock Videa Project Services GmbH
Videa Services GmbH [email protected]
JUG Hamburg Kids4IT Hamburg
@oliver_hockOliver_Hock3
olihock / bepemind Tae Kwon Do + Sailing
Main Process
Scan single Brick
React on Cube
Walk CubeScan Face
Face DMNScan all Bricks
Rotate Motor
Scan Cube Calculate Solve Cube
Face to Face
Move Face
Move DMN
TwistTiltTurn
Robot Access Delegate Layer
Brick Access Factory
«JavaDelegate»
Data Objects
CubeFinder Functions RotateMotorDelegate
GetColorDelegate
new MotorFactory()
new SensorFactory()
Very Static Model static Motor.A
static SensorPort.S1
Process
public class RotateMotorDelegate implements JavaDelegate {
public void execute(DelegateExecution execution) throws Exception {
String motorPort = (String) execution.getVariable(“motorPort”);
Number speed = (Number) execution.getVariable(“speed”);
// leJOS stuff here
@Deployment(resources = {
"com/videaps/cube/solving/ScanCube.bpmn"
})
public class ScanCubeTest extends BaseTest {
@Test
public void test() {
ProcessInstance processInstance =
processEngine.getRuntimeService()
.startProcessInstanceByKey(
"Process_ScanCube");
assertTrue(processInstance.isEnded());
}
Run as …