# Additional behaviour in ArtifactDownload state

**URL:** <https://hub.mender.io/t/additional-behaviour-in-artifactdownload-state/6342>\
**Category:** General Discussions\
**Tags:** state-scripts, mender-client, update\
**Created:** [November 16, 2023, 10:24am UTC](https://hub.mender.io/t/additional-behaviour-in-artifactdownload-state/6342 "2023-11-16T10:24:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mister\_kanister](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@mister\_kanister](https://hub.mender.io/u/mister_kanister)\
**Post date:** [November 16, 2023, 10:24am UTC](https://hub.mender.io/t/additional-behaviour-in-artifactdownload-state/6342/1 "2023-11-16T10:24:30Z")

</div>

Good Day Friends!

I was wondering if its is possible to implement some custom logic in other states. In my update module with something like:

```auto
case "$STATE" in
    ArtifactDownload_Enter)
	touch /root/downloading_enter
	;;
    ArtifactDownload)
	touch /root/downloading
	;;
    ArtifactDownload_Leave)
	touch /root/downloading_leave
	;;

```

The goal is to report back to our custom app so it can react accordingly

PS: In the age of AI chatbots is there a PDF version of the documentation? Can you release one?

Thanks in advance!
