This is an automated email from the ASF dual-hosted git repository.
egonzalez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-drools.git
The following commit(s) were added to refs/heads/main by this push:
new 1f2e67cbc5 [incubator-kie-issues-1439] UserTask Decouple codegen and
interface from engine (#6052)
1f2e67cbc5 is described below
commit 1f2e67cbc5d1b4d9fd1ce272d149788532596159
Author: Enrique <[email protected]>
AuthorDate: Wed Sep 18 08:46:38 2024 +0200
[incubator-kie-issues-1439] UserTask Decouple codegen and interface from
engine (#6052)
---
.../org/kie/api/event/usertask/Attachment.java | 37 -------------
.../java/org/kie/api/event/usertask/Comment.java | 34 ------------
.../event/usertask/UserTaskAssignmentEvent.java | 30 -----------
.../event/usertask/UserTaskAttachmentEvent.java | 28 ----------
.../api/event/usertask/UserTaskCommentEvent.java | 28 ----------
.../api/event/usertask/UserTaskDeadlineEvent.java | 56 -------------------
.../org/kie/api/event/usertask/UserTaskEvent.java | 62 ----------------------
.../kie/api/event/usertask/UserTaskStateEvent.java | 30 -----------
.../api/event/usertask/UserTaskVariableEvent.java | 34 ------------
9 files changed, 339 deletions(-)
diff --git a/kie-api/src/main/java/org/kie/api/event/usertask/Attachment.java
b/kie-api/src/main/java/org/kie/api/event/usertask/Attachment.java
deleted file mode 100644
index ded0ce0df2..0000000000
--- a/kie-api/src/main/java/org/kie/api/event/usertask/Attachment.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.kie.api.event.usertask;
-
-import java.net.URI;
-import java.util.Date;
-
-public interface Attachment {
-
- String getAttachmentId();
-
- String getAttachmentName();
-
- URI getAttachmentURI();
-
- String getUpdatedBy();
-
- Date getUpdatedAt();
-
-}
diff --git a/kie-api/src/main/java/org/kie/api/event/usertask/Comment.java
b/kie-api/src/main/java/org/kie/api/event/usertask/Comment.java
deleted file mode 100644
index 004d3e7d6e..0000000000
--- a/kie-api/src/main/java/org/kie/api/event/usertask/Comment.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.kie.api.event.usertask;
-
-import java.util.Date;
-
-public interface Comment {
-
- String getCommentId();
-
- String getCommentContent();
-
- String getUpdatedBy();
-
- Date getUpdatedAt();
-
-}
diff --git
a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskAssignmentEvent.java
b/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskAssignmentEvent.java
deleted file mode 100644
index 01d460e0dd..0000000000
---
a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskAssignmentEvent.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.kie.api.event.usertask;
-
-public interface UserTaskAssignmentEvent extends UserTaskEvent {
-
- String getAssignmentType();
-
- String[] getNewUsersId();
-
- String[] getOldUsersId();
-
-}
diff --git
a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskAttachmentEvent.java
b/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskAttachmentEvent.java
deleted file mode 100644
index 9f82c73605..0000000000
---
a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskAttachmentEvent.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.kie.api.event.usertask;
-
-public interface UserTaskAttachmentEvent extends UserTaskEvent {
-
- Attachment getOldAttachment();
-
- Attachment getNewAttachment();
-
-}
diff --git
a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskCommentEvent.java
b/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskCommentEvent.java
deleted file mode 100644
index b51eb3e6bd..0000000000
--- a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskCommentEvent.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.kie.api.event.usertask;
-
-public interface UserTaskCommentEvent extends UserTaskEvent {
-
- Comment getOldComment();
-
- Comment getNewComment();
-
-}
diff --git
a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskDeadlineEvent.java
b/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskDeadlineEvent.java
deleted file mode 100644
index c1c46b7a1d..0000000000
---
a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskDeadlineEvent.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.kie.api.event.usertask;
-
-import java.util.Map;
-
-import org.kie.api.runtime.process.WorkItem;
-
-/**
- * An event when a dealine for task has expired
- */
-public interface UserTaskDeadlineEvent extends UserTaskEvent {
-
- enum DeadlineType {
- Started,
- Completed
- }
-
- /**
- * Returns work item which timeout expires
- *
- * @return work item
- */
- WorkItem getWorkItem();
-
- /**
- * Returns notification data
- *
- * @return key-value pair list
- */
- Map<String, Object> getNotification();
-
- /**
- * Returns dealine type
- *
- * @return not started or not completed
- */
- DeadlineType getType();
-}
\ No newline at end of file
diff --git
a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskEvent.java
b/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskEvent.java
deleted file mode 100644
index 8f45c48b90..0000000000
--- a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskEvent.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.kie.api.event.usertask;
-
-import java.util.Date;
-
-import org.kie.api.event.KieRuntimeEvent;
-import org.kie.api.runtime.process.NodeInstance;
-import org.kie.api.runtime.process.ProcessInstance;
-import org.kie.api.runtime.process.WorkItem;
-
-/**
- * A runtime event related to the execution of process instances.
- */
-public interface UserTaskEvent
- extends
- KieRuntimeEvent {
-
- /**
- * The ProcessInstance this event relates to.
- *
- * @return the process instance
- */
- ProcessInstance getProcessInstance();
-
- NodeInstance getNodeInstance();
-
- WorkItem getWorkItem();
-
- String getUserTaskId();
-
- String getUserTaskDefinitionId();
-
- /**
- * Returns exact date when the event was created
- * @return time when event was created
- */
- Date getEventDate();
-
- /**
- * @return associated identity that performed the event
- */
- String getEventUser();
-
-}
diff --git
a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskStateEvent.java
b/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskStateEvent.java
deleted file mode 100644
index 7ed47cc4d3..0000000000
--- a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskStateEvent.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.kie.api.event.usertask;
-
-public interface UserTaskStateEvent extends UserTaskEvent {
-
- String getNewStatus();
-
- String getOldStatus();
-
-
-
-}
diff --git
a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskVariableEvent.java
b/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskVariableEvent.java
deleted file mode 100644
index a7dab82d79..0000000000
---
a/kie-api/src/main/java/org/kie/api/event/usertask/UserTaskVariableEvent.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.kie.api.event.usertask;
-
-public interface UserTaskVariableEvent extends UserTaskEvent {
-
- enum VariableEventType {
- INPUT, OUTPUT
- }
-
- String getVariableName();
-
- Object getOldValue();
-
- Object getNewValue();
-
- VariableEventType getVariableType();
-}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]