Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
10 replies
Subscribers
7 subscribers
Views
3491 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
I am trying to create a servlet and that servlet will take the process id as an
Karthik
over 8 years ago
I am trying to create a servlet and that servlet will take the process id as an input and redirect the user who is accessing the servlet to open a specific task of the given process id. However, it gives me 404 and writes the below log
Caused by: java.lang.ClassCastException: com.karthik.integration.OpenHomePage cannot be cast to javax.servlet.http.HttpServlet
at com.atlassian.plugin.servlet.descriptors.ServletModuleDescriptor.getModule(ServletModuleDescriptor.java:50)
at com.atlassian.plugin.servlet.DelegatingPluginServlet.<init>(DelegatingPluginServlet.java:33)
at com.atlassian.plugin.servlet.DefaultServletModuleManager$LazyLoadedServletReference.create(DefaultServletModuleManager.java:461)
at com.atlassian.plugin.servlet.DefaultServletModuleManager$LazyLoadedServletReference.create(DefaultServletModuleManager.java:447)
at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:326)
at com....
OriginalPostID-198296
OriginalPostID-198296
Discussion posts and replies are publicly visible
Parents
0
Karthik
over 8 years ago
I am trying to get the active tasks of an instance using the below code. There is an active task at a process which is nested two levels from the parent process. And the below code is not capturing the active task that I am looking for. How can I get the tasks of a subprocess?
TaskSummary[] tss = (TaskSummary[]) pes.getCurrentTasksForProcess(
cddProcessId,
ProcessExecutionService.UNATTENDED_AND_ATTENDED_TASKS, 0,
Constants.COUNT_ALL, TaskSummary.SORT_BY_ASSIGNED_TIME,
Constants.SORT_ORDER_DESCENDING).getResults();
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Karthik
over 8 years ago
I am trying to get the active tasks of an instance using the below code. There is an active task at a process which is nested two levels from the parent process. And the below code is not capturing the active task that I am looking for. How can I get the tasks of a subprocess?
TaskSummary[] tss = (TaskSummary[]) pes.getCurrentTasksForProcess(
cddProcessId,
ProcessExecutionService.UNATTENDED_AND_ATTENDED_TASKS, 0,
Constants.COUNT_ALL, TaskSummary.SORT_BY_ASSIGNED_TIME,
Constants.SORT_ORDER_DESCENDING).getResults();
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data