-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* import error records from Hazelcast * show errors of a workflow instance in the detail view * show a list of errors in the main view
- Loading branch information
Showing
10 changed files
with
341 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/* | ||
* Copyright © 2017 camunda services GmbH ([email protected]) | ||
* | ||
* Licensed 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 io.zeebe.monitor.entity; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.Id; | ||
import javax.persistence.Lob; | ||
|
||
@Entity(name = "ERROR") | ||
public class ErrorEntity { | ||
|
||
@Id | ||
@Column(name = "POSITION_") | ||
private long position; | ||
|
||
@Column(name = "ERROR_EVENT_POSITION_") | ||
private long errorEventPosition; | ||
|
||
@Column(name = "WORKFLOW_INSTANCE_KEY_") | ||
private long workflowInstanceKey; | ||
|
||
@Column(name = "EXCEPTION_MESSAGE_") | ||
@Lob | ||
private String exceptionMessage; | ||
|
||
@Column(name = "STACKTRACE_") | ||
@Lob | ||
private String stacktrace; | ||
|
||
@Column(name = "TIMESTAMP_") | ||
private long timestamp; | ||
|
||
public long getPosition() { | ||
return position; | ||
} | ||
|
||
public void setPosition(long position) { | ||
this.position = position; | ||
} | ||
|
||
public long getErrorEventPosition() { | ||
return errorEventPosition; | ||
} | ||
|
||
public void setErrorEventPosition(long errorEventPosition) { | ||
this.errorEventPosition = errorEventPosition; | ||
} | ||
|
||
public long getWorkflowInstanceKey() { | ||
return workflowInstanceKey; | ||
} | ||
|
||
public void setWorkflowInstanceKey(long workflowInstanceKey) { | ||
this.workflowInstanceKey = workflowInstanceKey; | ||
} | ||
|
||
public String getExceptionMessage() { | ||
return exceptionMessage; | ||
} | ||
|
||
public void setExceptionMessage(String exceptionMessage) { | ||
this.exceptionMessage = exceptionMessage; | ||
} | ||
|
||
public String getStacktrace() { | ||
return stacktrace; | ||
} | ||
|
||
public void setStacktrace(String stacktrace) { | ||
this.stacktrace = stacktrace; | ||
} | ||
|
||
public long getTimestamp() { | ||
return timestamp; | ||
} | ||
|
||
public void setTimestamp(long timestamp) { | ||
this.timestamp = timestamp; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/main/java/io/zeebe/monitor/repository/ErrorRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright © 2017 camunda services GmbH ([email protected]) | ||
* | ||
* Licensed 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 io.zeebe.monitor.repository; | ||
|
||
import io.zeebe.monitor.entity.ErrorEntity; | ||
import io.zeebe.monitor.entity.IncidentEntity; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.repository.PagingAndSortingRepository; | ||
|
||
import java.util.List; | ||
|
||
public interface ErrorRepository extends PagingAndSortingRepository<ErrorEntity, Long> { | ||
|
||
List<ErrorEntity> findByWorkflowInstanceKey(long workflowInstanceKey); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package io.zeebe.monitor.rest; | ||
|
||
public final class ErrorDto { | ||
|
||
private long position; | ||
private long errorEventPosition; | ||
private Long workflowInstanceKey; | ||
private String exceptionMessage; | ||
private String stacktrace; | ||
private String timestamp; | ||
|
||
public long getPosition() { | ||
return position; | ||
} | ||
|
||
public void setPosition(long position) { | ||
this.position = position; | ||
} | ||
|
||
public long getErrorEventPosition() { | ||
return errorEventPosition; | ||
} | ||
|
||
public void setErrorEventPosition(long errorEventPosition) { | ||
this.errorEventPosition = errorEventPosition; | ||
} | ||
|
||
public Long getWorkflowInstanceKey() { | ||
return workflowInstanceKey; | ||
} | ||
|
||
public void setWorkflowInstanceKey(Long workflowInstanceKey) { | ||
this.workflowInstanceKey = workflowInstanceKey; | ||
} | ||
|
||
public String getExceptionMessage() { | ||
return exceptionMessage; | ||
} | ||
|
||
public void setExceptionMessage(String exceptionMessage) { | ||
this.exceptionMessage = exceptionMessage; | ||
} | ||
|
||
public String getStacktrace() { | ||
return stacktrace; | ||
} | ||
|
||
public void setStacktrace(String stacktrace) { | ||
this.stacktrace = stacktrace; | ||
} | ||
|
||
public String getTimestamp() { | ||
return timestamp; | ||
} | ||
|
||
public void setTimestamp(String timestamp) { | ||
this.timestamp = timestamp; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.