Defining actors - human tasks and service tasks
I'm currently building an app that embeds bonita in an iFrame using REST API. Currently, when running the app to start a bonita flow, a new case is created then, it's retrieved the current/next task for that case, then the "do it" URL is built. This works fine if the process starts with an human task. However, recently I needed to start a case with an service task, so I've defined an actor as initiator to start the process and run the service task but now when the case is created, the service task is ran but the next task (an human task) is not assigned to anyone. and my app crashes because the current/next task is null.
What do I need to do to assign an task to a user? BTW, I only have one user in portal / server, so I map actors to that same user.