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 ded0ce0df24..00000000000 --- 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 004d3e7d6ee..00000000000 --- 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 01d460e0ddb..00000000000 --- 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 9f82c73605e..00000000000 --- 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 b51eb3e6bd6..00000000000 --- 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 c1c46b7a1d0..00000000000 --- 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 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 8f45c48b905..00000000000 --- 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 7ed47cc4d37..00000000000 --- 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 a7dab82d79f..00000000000 --- 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(); -}