Commit Graph

1682 Commits

Author SHA1 Message Date
Robert von Burg 905db8c297 [Project] Set new version 1.5.0-SNAPSHOT 2016-11-03 12:07:38 +01:00
Robert von Burg edcef3e755 Merged branch release/1.4.0 into develop 2016-11-03 11:51:11 +01:00
Robert von Burg 8c1b99647f [Project] naje deploy.sh executable 2016-11-03 09:27:16 +01:00
Robert von Burg 8fd4a5e311 [Fix] Fixed InMemoryElementListener because of versioning 2016-10-24 11:08:41 +02:00
Robert von Burg fecb1f4395 [Project] added release scripts 2016-10-24 10:48:35 +02:00
Robert von Burg f5fc938124 [Minor] Always log original exception if TX fails 2016-10-24 10:45:06 +02:00
Robert von Burg dede70b9d4 [Project] inline version.sh into hotfix.sh and release.sh 2016-10-19 12:16:09 +02:00
Robert von Burg bff0215510 [Major] Refactored the DurationExecutionTimer to not be singleton
Once again it is clear how bad singletons are. One test killed the
timer, thus all other tests failed. Now the DelayedExecutionTimer is
retrieved from the ExecutionHandler and is called DelayedExecutionTimer
with a default implementation of SimpleDurationExecutionTimer
instantiated by the EventBasedExecutionHandler
2016-10-11 14:59:52 +02:00
Robert von Burg 992f3966dc [New] Rewrote the Paging class to use offset/limit
Also returns next, previous and last offsets. Added helper method to
create a REST Response from a page in ResponseUtil
2016-10-07 11:55:08 +02:00
Robert von Burg ba476b2f68 [Minor] Added TODO about .getBy() which returns clone, and querying 2016-10-07 09:38:39 +02:00
Robert von Burg 3be7f9e905 [Fix] Fix timing in execution tests for CI 2016-10-06 21:16:00 +02:00
Robert von Burg 001717d987 [Fix] Fixed ToStock Execution due to changes in Strolch 1.4.x 2016-10-06 20:46:15 +02:00
Robert von Burg b775c00f4d [Major] Implemented ExecutionDuration and fixed deep execution
Using the DurationExecution:

<Activity Id="produceBicycle" Name="Activity" Type="ToStock" 
        TimeOrdering="Series">
  <ParameterBag Name="objectives" Id="Objectives" Type="Objectives">
    <Parameter Name="Duration" Id="duration" Value="PT0.01S" 
          Type="Duration" />
  </ParameterBag>
  <Action Id="produce" Name="Produce" ResourceId="bicycle" 
          ResourceType="Product" Type="Produce" />
</Activity>

IActivityElement now has a new method .findParameter() to search up the
activity hierarchy to find the element
2016-10-06 20:38:06 +02:00
Robert von Burg 89830c0412 [Minor] resource id and type are optional in model schema 2016-10-06 08:17:26 +02:00
Robert von Burg 2b701d5d74 [Fix] Fixed json object not marshalled in AuthenticationService 2016-10-05 17:03:01 +02:00
Robert von Burg 0e818832fa [Project] Added release and deploy scripts 2016-10-04 20:05:37 +02:00
Robert von Burg 9ce54232a7 [Project] Added release and deploy scripts 2016-10-04 19:59:18 +02:00
Robert von Burg 0e2424bf22 [Minor] Upgrade to Jersey 2.23.2 2016-10-04 15:13:25 +02:00
Robert von Burg 597441653a [Minor] Code cleanup 2016-10-03 14:00:39 +02:00
Robert von Burg 61b3a3e5bf [Minor] Fixing broken tests 2016-10-03 11:36:35 +02:00
Robert von Burg 811b71f543 [Major] Implemented EventBasedExecutionHandler
Now all Actions are executed, as long as Execution is done through the
ExecutionHandler
2016-09-30 16:35:16 +02:00
Robert von Burg f023f682a8 [Major] Implemented State Model on Activity/Actions
We have three major blocks:
- In Execution Warning:
  - STOPPED
  - WARNING
  - ERROR
- in execution:
  - above including EXECUTION and EXECUTED
- in planning:
  - PLANNING and PLANNED
- CREATED
- CLOSED

EXECUTION is used if any action is EXECUTED and a prior state exists
PLANNING is used if any action is PLANNED and PLANNING or CREATED 
  state exists
CLOSED is only used if everything is CLOSED, otherwise one of the
previous states is used
2016-09-30 16:28:35 +02:00
Robert von Burg 7a537e7886 [Major] REST APIs are supposed to be plural 2016-09-30 10:13:22 +02:00
Robert von Burg 8c429ccb19 [Fix] Fixed version when loading from PostgreSQL 2016-09-30 10:12:59 +02:00
Robert von Burg 8392ab24d8 [Fix] Fixed PostgreSQL migration script 2016-09-29 17:37:01 +02:00
Robert von Burg 3aea4a223c [Fix] Fixed PostgreSQL migration script 2016-09-29 17:29:04 +02:00
Robert von Burg 32438778b3 [Fix] Fixed PostgreSQL migration script 2016-09-29 17:20:04 +02:00
Robert von Burg d7931f101e [Minor] Fixed tests 2016-09-29 17:04:46 +02:00
Robert von Burg c6506de3ab [Major] Fixed starting of all test applications 2016-09-29 16:54:48 +02:00
Robert von Burg 48caa84903 [Major] Refactored SystemAction in privileges
Simplified the API, removed the privileged user - now always use the
agent system user for running system actions. One method has no return
value and one has a return value. Now it is easy to perform a system
action using:

    runAsAgent(ctx -> {
      // do work			
    });

    String result = runAsAgentWithResult(ctx -> {
      // do work
      return "done";
    });

    // execute a SystemAction
    runAsAgent(action);

    // execute a SystemActionWithResult
    String result = runAsAgentWithResult(actionWithResult);
2016-09-29 15:54:30 +02:00
Robert von Burg dd227c65d0 [Major] Refactored SystemAction in privileges
Simplified the API, removed the privileged user - now always use the
agent system user for running system actions. One method has no return
value and one has a return value. Now it is easy to perform a system
action using:

    runAsAgent(ctx -> {
      // do work			
    });

    String result = runAsAgentWithResult(ctx -> {
      // do work
      return "done";
    });

    // execute a SystemAction
    runAsAgent(action);

    // execute a SystemActionWithResult
    String result = runAsAgentWithResult(actionWithResult);
2016-09-29 12:26:27 +02:00
Robert von Burg 3385694563 [Project] StrolchModel-1.4.xsd: added required for attributes 2016-09-28 15:15:18 +02:00
Robert von Burg 06f0411f46 [Project] added missing TimeOrdering 2016-09-28 15:03:02 +02:00
Robert von Burg aab5f0b22f [Major] Moved planning services to li.strolch.planning 2016-09-24 19:07:42 +02:00
Robert von Burg 65c02d2cc0 [Major] Implemented first version of Activity execution 2016-09-23 14:20:16 +02:00
Robert von Burg b4bc62d11c [Major] Implemented first version of Activity execution 2016-09-23 14:03:42 +02:00
Robert von Burg d86e23b58f [Fix] Fixed locator finding for Activity and Action 2016-09-23 13:29:02 +02:00
Robert von Burg c4748403d8 [Major] Versionized Namespace to 1.4 2016-09-23 11:09:39 +02:00
Robert von Burg d74807cffa [Major] Versionized Namespace to 1.4 2016-09-23 11:06:12 +02:00
Robert von Burg d413794213 [Major] Added Activity.TimeOrdering and updated Model XSD 2016-09-23 10:53:37 +02:00
Robert von Burg 02e0110fc6 [Minor] Refactoring packages of tests 2016-09-22 21:59:40 +02:00
Robert von Burg 5cbbfebf06 [Major] Services now consider Arg realm or user realm 2016-09-22 21:52:36 +02:00
Robert von Burg b7b9d63e79 [Major] Refactored services to use generic Arguments were applicable 2016-09-22 21:06:57 +02:00
Robert von Burg c89a275452 [Major] Planning commands are in planning package 2016-09-22 21:05:13 +02:00
Robert von Burg 7255bcedc0 [Project] add mgmt for maven-project-info-reports-plugin 2016-09-22 15:30:35 +02:00
Robert von Burg 19d519a408 [Project] Fixed version in persistence.xml 2016-09-22 15:27:18 +02:00
Robert von Burg 8abbbab049 [Minor] Major clean up of JavaDocs in utils 2016-09-22 15:26:32 +02:00
Robert von Burg 5abef93324 [Project] Website update for Release 1.3.0 2016-09-22 13:29:25 +02:00
Robert von Burg 8f49fdfcf3 [Minor] Deleted target 2016-09-22 11:34:52 +02:00
Robert von Burg dc0a34dc9d [Project] Set new snapshot version 1.4.0-SNAPSHOT 2016-09-22 11:33:15 +02:00