Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
maxLevel1
typeflat


Introduction

In certain processes it is necessary to compile information in a PDF and deliver it to a group of users. This article describes by means of an example how this can be done in the CoreOne Workflow Engine.

...

Create PDF

1

First of all you need to load the required context values that you want to replace in your template. For example, select the activity 'CoreIdentity / GetContextParametersActivity', which loads all attributes of a core identity.

2

Next, add the 'GeneratePdf' activity

3

Image RemovedImage Added

In the settings of the activity you can pass the context values loaded in the previous activity as replacements and specify the template name. Save the result in a new object of the type 'MemoryStream

Send email with attachment

1

Add the 'Send-Mail' activity

2

Image RemovedImage Added

In the settings of the activity they can set the text, the sender and other settings.

Important:

You add the previously generated memory stream here as an attachment. You can do this most simply with the following configuration:

Code Block
languagec#
{ new iTsense.Moving.Common.Mail.Attachment(PdfStream, "application/pdf", "Welcome.pdf") }


Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel in ( "identität" , "how-to" ) and type = "page" and space = "IKB"

...