Skip to content

Run administration tasks directly from the camunda 7 cockpit using generated mini-processes

License

Notifications You must be signed in to change notification settings

holunda-io/camunda-admin-process-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

camunda-admin-process-registry

Run administration tasks directly from the camunda 7 cockpit using generated mini-processes.

stable Camunda 7.20 Build Status sponsored Maven Central Compatible with: Camunda Platform 7

This lib/spring-boot-auto-config allows you to easily and fast generate and deploy single-service-task processes that can be started from the camunda-webapp/tasklist.

Doing so enables you to implement administration/house-keeping jobs as a process, use camundas form/ui and run tasks controlled with the full power of the engine cockpit, including error handling and analysis.

How does it work

Once you included the lib in your camunda spring boot application, create an AdminProcess bean like this:

  @Bean
  fun helloWorldAdminProcess(): AdminProcess {
    val foo = StringField("foo", "Foo - enter your name")
    val date = DateField("date", "Date - select some magic")

    return adminProcess(
      activityId = "helloWorld",
      label = "Hello World 2",
      formFields = listOf(foo, date)
    ) {
      val variables = CamundaBpmData.reader(it)

      logger.info { """ Hi, I am the process running with:
          * foo: ${variables.get(foo)}
          * date: ${variables.get(date)}
        """.trimIndent()
      }
    }
  }
  

And you are done!


The generated model looks like this:

generated model

You can run the process in the webapp:

start process

And fill out the form:

fill out form

About

Run administration tasks directly from the camunda 7 cockpit using generated mini-processes

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages